<template>
  <el-dialog
    @open="openChangeTital()"
    :title="isTitle"
    :close-on-click-modal="false"
    fullscreen
    :visible.sync="visible"
    >
    <el-form 
    :model="dataForm" 
    :rules="dataRule" 
    ref="dataForm" 
    :disabled="isDisabled"
    @keyup.enter.native="dataFormSubmit()" 
    label-width="100px">
      <el-tabs v-model="activeName">
        <el-tab-pane label="个人基本信息" name="first" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="行政区划代码" prop="areaCode">
                    <el-input
                      v-model="dataForm.areaCode"
                      placeholder="行政区划代码"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="个人编码" prop="personalCode">
                    <el-input
                      v-model="dataForm.personalCode"
                      placeholder="个人编码"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="姓名" prop="name">
                    <el-input
                      v-model="dataForm.name"
                      placeholder="姓名"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="身份证号码" prop="idNo">
                    <el-input
                      v-model="dataForm.idNo"
                      placeholder="身份证号码"
                      :style="{ width: '80%' }"
                      @change="inputFunc(dataForm.idNo)"
                    ></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="性别" prop="sex">
                    <el-select
                      v-model="dataForm.sex"
                      placeholder="性别"
                      :style="{ width: '80%' }"
                      @click.native="dataSex('SEX_GROUP')"
                    >
                      <el-option
                        v-for="item in sexList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="民族" prop="sex">
                    <el-select
                      v-model="dataForm.nation"
                      filterable
                      placeholder="民族"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('NATION')"
                    >
                      <el-option
                        v-for="item in nationList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
               <el-col :span="8">
                  <el-form-item label="政治面目" prop="politicalFace">
                    <el-select
                      v-model="dataForm.politicalFace"
                      placeholder="政治面目"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('ZZMM')"
                    >
                      <el-option
                        v-for="item in politicalFaceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="籍贯" prop="nativePlace">
                    <el-select
                      v-model="dataForm.nativePlace"
                      placeholder="籍贯"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('JG')"
                    >
                      <el-option
                        v-for="item in nativePlaceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="现户籍所在地" prop="registeredResidence">
                    <el-select
                      v-model="dataForm.registeredResidence"
                      placeholder="户籍所在地"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('JG')"
                    >
                      <el-option
                        v-for="item in nativePlaceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>    
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="人员分类" prop="personType">
                    <el-select
                      v-model="dataForm.personType"
                      placeholder="人员分类"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataRyfl($event, 'RYFL')"
                    >
                      <el-option
                        v-for="item in personTypeList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="离休前身份" prop="retirementStatus">
                    <el-select
                      v-model="dataForm.retirementStatus"
                      placeholder="离休前身份"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataArea($event, 'TXQSF')"
                    >
                      <el-option
                        v-for="item in retirementStatusList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="离休时职务" prop="duties">
                    <el-select
                      v-model="dataForm.duties"
                      placeholder="离休时职务"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataduty(dataForm.retirementStatus)"
                    >
                      <el-option
                        v-for="item in dutiesList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="出生年月" prop="birthDate">
                    <el-date-picker
                      v-model="dataForm.birthDate"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="参加工作时间" prop="workTime">
                    <el-date-picker
                      v-model="dataForm.workTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      @change="inputWork(dataForm.workTime)"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="退休时间" prop="retirementTime">
                    <el-date-picker
                      v-model="dataForm.retirementTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      @change="retirement(dataForm.retirementTime)"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="政策规定退休时间" prop="zfgdTime" label-width="150px">
                    <el-date-picker
                      v-model="dataForm.zfgdTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="列入安置计划时间" prop="resettlementPlanTime" label-width="150px">
                    <el-date-picker
                      v-model="dataForm.resettlementPlanTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="安置区县" prop="county">
                    <el-select
                      v-model="dataForm.county"
                      placeholder="安置区县"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataArea($event, 'AREA')"
                    >
                      <el-option
                        v-for="item in countyList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>         
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="街道、乡镇" prop="street">
                    <el-select
                      v-model="dataForm.street"
                      filterable
                      placeholder="街道、乡镇"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataStreet(dataForm.county)"
                    >
                      <el-option
                        v-for="item in streetList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="原部队" prop="originalTroops">
                    <el-select
                      v-model="dataForm.originalTroops"
                      filterable
                      placeholder="原部队"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YBD')"
                    >
                      <el-option
                        v-for="item in originalTroopsList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="医疗照顾分类" prop="registrationNo">
                    <el-select
                      v-model="dataForm.registrationNo"
                      filterable
                      placeholder="医疗照顾分类"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YLZGFL')"
                    >
                      <el-option
                        v-for="item in registrationNoList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="移交时间" prop="handoverTime">
                    <el-date-picker
                      v-model="dataForm.handoverTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="移交方式" prop="handoverMode">
                    <el-select
                      v-model="dataForm.handoverMode"
                      placeholder="移交方式"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YJFS')"
                    >
                      <el-option
                        v-for="item in handoverModeList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="移交批次" prop="handoverBatch">
                    <el-select
                      v-model="dataForm.handoverBatch"
                      placeholder="移交批次"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('YJPC')"
                    >
                      <el-option
                        v-for="item in handoverBatchList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="参加医保" prop="medicalInsurance">
                    <el-select
                      v-model="dataForm.medicalInsurance"
                      placeholder="参加医保"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('CJYB')"
                    >
                      <el-option
                        v-for="item in medicalInsuranceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="职工分类" prop="workersClassification">
                    <el-select
                      v-model="dataForm.workersClassification"
                      placeholder="职工分类"
                      :style="{ width: '80%' }"
                      clearable
                    >
                      <el-option
                        v-for="item in workersClassificationList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item
                    label="是否享受荣誉津贴"
                    prop="enjoyAllowance"
                    label-width="150px"
                  >
                    <el-select
                      v-model="dataForm.enjoyAllowance"
                      placeholder="是否享受荣誉津贴"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('SFXSRYJT')"
                    >
                      <el-option
                        v-for="item in enjoyAllowanceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item
                    label="是否享受政府特殊津贴"
                    prop="specialAllowance"
                    label-width="180px"
                  >
                    <el-select
                      v-model="dataForm.specialAllowance"
                      placeholder="是否享受政府特殊津贴"
                      :style="{ width: '80%' }"
                      clearable
                      @click.native="dataSex('SFXSZFTSJT')"
                    >
                      <el-option
                        v-for="item in specialAllowanceList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="本人状态" prop="myStatus">
                    <el-select
                      v-model="dataForm.myStatus"
                      placeholder="本人状态"
                      :style="{ width: '80%' }"
                      clearable
                      @change="dataBrzt($event, 'BRZT')"
                    >
                      <el-option
                        v-for="item in myStatusList"
                        :key="item.value"
                        :label="item.label"
                        :value="item.value"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="死亡" prop="death">
                    <el-select
                      v-model="dataForm.death"
                      :style="{ width: '80%' }"
                      clearable
                      
                    >
                      <el-option
                        v-for="item in deathList"
                        :key="item.code"
                        :label="item.value"
                        :value="item.code"
                      >
                      </el-option>
                    </el-select>
                  </el-form-item>
                </el-col>
              </el-row>  
              <el-row :gutter="20">
                <el-col :span="8">
                  <el-form-item label="死亡时间" prop="deathTime">
                    <el-date-picker
                      v-model="dataForm.deathTime"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      :disabled="deathTimeDisabled"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>
                <el-col :span="8">
                  <el-form-item label="注销日期" prop="logoutDate">
                    <el-date-picker
                      v-model="dataForm.logoutDate"
                      type="date"
                      value-format="yyyy-MM-dd"
                      placeholder="选择日期"
                      :style="{ width: '80%' }"
                      :disabled="logoutDateDisabled"
                    >
                    </el-date-picker>
                  </el-form-item>
                </el-col>        
              </el-row>            
            </div>
          </el-card>
        </el-tab-pane>
        <el-tab-pane label="住房及离休信息" name="second" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="待遇标准" prop="treatmentStandard">
                      <el-select
                        v-model="dataForm.treatmentStandard"
                        placeholder="待遇标准"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('DYBZ')"
                      >
                        <el-option
                          v-for="item in treatmentStandardList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="技术人员分类"
                      prop="personnelClassification"
                    >
                      <el-select
                        v-model="dataForm.personnelClassification"
                        placeholder="技术人员分类"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="
                          personnelClass(dataForm.retirementStatus)
                        "
                      >
                        <el-option
                          v-for="item in personnelClassificationList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="住房情况" prop="housingSituation">
                      <el-select
                        v-model="dataForm.housingSituation"
                        placeholder="住房情况"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('ZFQK')"
                      >
                        <el-option
                          v-for="item in housingSituationList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="住房产权" prop="housingPropertyRight">
                      <el-select
                        v-model="dataForm.housingPropertyRight"
                        placeholder="住房产权"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('ZFCQ')"
                      >
                        <el-option
                          v-for="item in housingPropertyRightList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="房屋产权（租赁）人"
                      prop="leaseholder"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.leaseholder"
                        placeholder="房屋产权（租赁）人"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('FWZLR')"
                      >
                        <el-option
                          v-for="item in leaseholderList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="住房建筑面积" prop="housingArea">
                      <el-input
                        v-model="dataForm.housingArea"
                        placeholder="住房建筑面积"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="工作单位" prop="workUnit">
                      <el-input
                        v-model="dataForm.workUnit"
                        placeholder="工作单位"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="家庭住址" prop="address">
                      <el-input
                        v-model="dataForm.address"
                        placeholder="家庭住址"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="电话号码" prop="phone">
                      <el-input
                        v-model="dataForm.phone"
                        placeholder="电话号码"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-form-item label="备注" prop="remarks">
                      <el-input
                        type="textarea"
                        :autosize="{ minRows: 4, maxRows: 10 }"
                        v-model="dataForm.remarks"
                        placeholder="备注"
                        :style="{ width: '95%' }"
                      >
                      </el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20" >
                  <el-col :span="8">
                    <el-form-item label="军队工作年限" prop="workingYearsArmy">
                      <el-input
                        v-model="dataForm.workingYearsArmy"
                        placeholder="军队工作年限"
                        :style="{ width: '80%' }"
                        @mouseout.native="
                          armyWork(
                            dataForm.workingYearsArmy,
                            dataForm.workingYears
                          )
                        "
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="教龄" prop="teachingAge">
                      <el-input
                        v-model="dataForm.teachingAge"
                        placeholder="教龄"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="工作年限（工龄）"
                      prop="workingYears"
                      label-width="140px"
                    >
                      <el-input
                        v-model="dataForm.workingYears"
                        placeholder="工作年限"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20" >
                  <el-col :span="8">
                    <el-form-item
                      label="退休费计发比例"
                      prop="retirementFeeProportion"
                      label-width="140px"
                    >
                      <el-input
                        v-model="dataForm.retirementFeeProportion"
                        placeholder="基本退休费计发比例"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="工资是否提高10%"
                      prop="isImprove"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.isImprove"
                        placeholder="工资是否提高10%"
                        :style="{ width: '80%' }"
                        clearable
                        @change="dataImprove($event, 'GZSFTG')"
                      >
                        <el-option
                          v-for="item in isImproveList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="奖金津贴比例" prop="allowanceRatio">
                      <el-select
                        v-model="dataForm.allowanceRatio"
                        placeholder="奖金津贴比例"
                        :style="{ width: '80%' }"
                        clearable
                        :disabled="allowanceRatioClass"
                        @click.native="dataSex('JJJTBL')"
                      >
                        <el-option
                          v-for="item in allowanceRatioList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>  
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="机关职员级别" prop="wageLevel">
                      <el-select
                        v-model="dataForm.wageLevel"
                        placeholder="机关职员级别"
                        :style="{ width: '80%' }"
                        clearable
                        :disabled="true"
                      >
                        <el-option
                          v-for="item in wageLevelList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="工资档次"
                      prop="wageGrade"
                      label-width="140px"
                    >
                      <el-select
                        v-model="dataForm.wageGrade"
                        placeholder="工资档次"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('GGGZDC')"
                        :disabled="wageGradeClass"
                      >
                        <el-option
                          v-for="item in wageGradeList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="是否享受生活长期不能自理护理费" prop="isNursingFee" label-width="230px">
                      <el-select
                        v-model="dataForm.isNursingFee"
                        placeholder="是否享受护理费"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('CQBNZL')"
                      >
                        <el-option
                          v-for="item in isNursingFeeList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>  
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="接收情况" prop="reception">
                      <el-select
                        v-model="dataForm.reception"
                        placeholder="接收情况"
                        :style="{ width: '80%' }"
                        clearable
                        @click.native="dataSex('LXJSQK')"
                      >
                        <el-option
                          v-for="item in receptionList"
                          :key="item.value"
                          :label="item.label"
                          :value="item.value"
                        >
                        </el-option>
                      </el-select>
                    </el-form-item>
                  </el-col>
                </el-row>  
              </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="离休费基数信息" name="third" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
              <el-row :gutter="20">
                <el-col :span="12">
                  <el-form-item label="工资等级" prop="wageScale">
                    <el-input
                      v-model="dataForm.wageScale"
                      placeholder="工资等级"
                      :style="{ width: '80%' }"
                    ></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
            </div>
          </el-card>  
          <el-card style="width: 100%;margin-top:20px;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="职务（级别）标准工资"
                      prop="gradeSalary"
                      label-width="155px"
                    >
                      <el-input
                        v-model="dataForm.gradeSalary"
                        placeholder="档次工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="工龄工资" prop="senioritySalary">
                      <el-input
                        v-model="dataForm.senioritySalary"
                        placeholder="工龄工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="基础工资" prop="basicSalary">
                      <el-input
                        v-model="dataForm.basicSalary"
                        placeholder="基础工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="级别工资" prop="levelSalary">
                      <el-input
                        v-model="dataForm.levelSalary"
                        placeholder="级别工资"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="提高工资10%" prop="raiseWages">
                      <el-input
                        v-model="dataForm.raiseWages"
                        placeholder="提高工资10%"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="奖金津贴" prop="bonusAllowance">
                      <el-input
                        v-model="dataForm.bonusAllowance"
                        placeholder="奖金津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="军队服务津贴" prop="serviceAllowance">
                      <el-input
                        v-model="dataForm.serviceAllowance"
                        placeholder="军队服务津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="教护龄津贴" prop="seniorityAllowance">
                      <el-input
                        v-model="dataForm.seniorityAllowance"
                        placeholder="教护龄津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="特教津贴"
                      prop="specialTeacherSubsidy"
                    >
                      <el-input
                        v-model="dataForm.specialTeacherSubsidy"
                        placeholder="特教技师其它津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="基本离休费合计"
                      label-width="140px"
                    >
                      <el-input
                        v-model="this.resultA"
                        placeholder="基本离休费合计"
                        :style="{ width: '80%' }"
                        disabled
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
          </el-card>
        </el-tab-pane>

        <el-tab-pane label="历次增加的离休费" name="fourth" style="margin:10px;">
          <el-card style="width: 100%;" shadow="hover">
            <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1989年10月增加离休费"
                      prop="retirementPayEightynine"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayEightynine"
                        placeholder="1989年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1992年3月提高离休费10％"
                      prop="retirementPayNinetytwo"
                      label-width="180px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetytwo"
                        placeholder="1992年3月提高离休费10％"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1995年10月增加离休费"
                      prop="retirementPayNinetyfive"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetyfive"
                        placeholder="1995年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1997年10月增加离休费"
                      prop="retirementPayNinetysesec"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetysesec"
                        placeholder="1997年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1999年10月增加离休费"
                      prop="retirementPayNinetynisec"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetynisec"
                        placeholder="1999年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2001年10月增加离休费"
                      prop="retirementPayOnsec"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOnsec"
                        placeholder="2001年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2003年10月增加离休费"
                      prop="retirementPayThisec"
                      label-width="170px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayThisec"
                        placeholder="2003年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2005年10月增加离休费"
                      prop="retirementPayFive"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFive"
                        placeholder="2005年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
              </el-card>
              <el-card style="width: 100%;margin-top:20px;" shadow="hover">
              <div>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1993年10月第一步增加离休费"
                      prop="retirementPayFirst"
                      label-width="200px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFirst"
                        placeholder="1993年10月第一步增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1993年10月第二步增加离休费"
                      prop="retirementPaySecond"
                      label-width="200px"
                    >
                      <el-input
                        v-model="dataForm.retirementPaySecond"
                        placeholder="1993年10月第二步增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="1997年7月增加离休费"
                      prop="retirementPayNinetyseven"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetyseven"
                        placeholder="1997年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="1999年7月增加离休费"
                      prop="retirementPayNinetynine"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNinetynine"
                        placeholder="1999年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2001年1月增加离休费"
                      prop="retirementPayOne"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOne"
                        placeholder="2001年1月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2001年10月新增离休费"
                      prop="retirementPayOnenew"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayOnenew"
                        placeholder="2001年10月新增离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2003年7月增加离休费"
                      prop="retirementPayThird"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayThird"
                        placeholder="2003年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2006年7月增加离休费"
                      prop="retirementPaySix"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPaySix"
                        placeholder="2006年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2014年10月增加离休费"
                      prop="retirementPayFourty"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayFourty"
                        placeholder="2014年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2016年7月增加离休费"
                      prop="retirementPaySixteen"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPaySixteen"
                        placeholder="2016年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="2018年7月增加离休费"
                      prop="retirementPayEighteen"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayEighteen"
                        placeholder="2018年7月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="2021年10月增加离休费"
                      prop="retirementPayTwentyten"
                      label-width="160px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayTwentyten"
                        placeholder="2021年10月增加离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col> 
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="历次增加的离休费合计"
                      prop="retirementPayFourty"
                      label-width="160px"
                    >
                      <el-input
                        v-model="this.resultB"
                        placeholder="历次增加的离休费合计"
                        :style="{ width: '80%' }"
                        disabled
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                </div>
              </el-card>
        </el-tab-pane>

        <el-tab-pane label="增机制补贴及退休金" name="six" style="margin:10px">
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="养老医疗补贴"
                      prop="pensionMedicalSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.pensionMedicalSubsidy"
                        placeholder="养老医疗补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="护理费（自雇费）"
                      prop="nursingFee"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.nursingFee"
                        placeholder="护理费（自雇费）"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="用车包干补贴"
                      prop="carAllowance"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.carAllowance"
                        placeholder="用车包干补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="2012年7月增加离休补贴"
                      prop="growthMechanismSubsidy"
                      label-width="165px"
                    >
                      <el-input
                        v-model="dataForm.growthMechanismSubsidy"
                        placeholder="2012年7月增加离休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2019年1月增加离休补贴"
                      prop="retirementPayNineteen"
                      label-width="165px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayNineteen"
                        placeholder="2019年1月增加离休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="2021年7月增加离休补贴"
                      prop="retirementPayTwentyseven"
                      label-width="165px"
                    >
                      <el-input
                        v-model="dataForm.retirementPayTwentyseven"
                        placeholder="2021年7月增加离休补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>

                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item
                      label="荣誉津贴"
                      prop="honorAllowance"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.honorAllowance"
                        placeholder="荣誉津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item
                      label="物业服务补贴"
                      prop="serviceSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.serviceSubsidy"
                        placeholder="物业服务补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="增长机制其它补贴合计" label-width="165px">
                      <el-input
                        v-model="this.resultG"
                        disabled
                        placeholder="其它合计"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>  
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="政府特殊津贴"
                      prop="specialGoveAllowanc"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.specialGoveAllowanc"
                        placeholder="政府特殊津贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="采暖补贴"
                      prop="heatingSubsidy"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.heatingSubsidy"
                        placeholder="采暖补贴"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>
            <el-card style="width: 100%; margin-top: 20px; margin-bottom: 20px  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="退休费总额" label-width="150px">
                      <el-input
                        v-model="this.resultH"
                        disabled
                        placeholder="退休费总额"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="差额" label-width="150px">
                      <el-input
                        v-model="this.resultI"
                        disabled
                        placeholder="差额"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
            </el-card>
            <el-card style="width: 100%  " shadow="hover">
              <div>  
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item
                      label="月离休费"
                      prop="totalMonthlyPension"
                      label-width="150px"
                    >
                      <el-input
                        v-model="dataForm.totalMonthlyPension"
                        placeholder="月离休费"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item
                      label="年离休费总额"
                      prop="inPsion"
                      label-width="150px"
                    >
                      <el-input
                        v-model="this.resultK"
                        disabled
                        placeholder="年离休费总额"
                        :style="{ width: '80%' }"
                      ></el-input>
                    </el-form-item>
                  </el-col>
                </el-row>
              </div>
          </el-card>
        </el-tab-pane>
      </el-tabs>  
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false" :style="{ display: visibleLine }">取消</el-button>
      <el-button type="primary" :style="{ display: visibleLine }"  @click="dataFormSubmit()">确定</el-button>
      <span v-if="this.dataForm.id"><el-button type="primary" @click="download()">查看离休费构成表</el-button></span>
      <span v-if="this.dataForm.id"><el-button type="primary" @click="lxf()">预览离休费构成表</el-button></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.myStatus=='死亡' "><el-button type="primary" @click="downloadDeath()">查看抚恤金构成表</el-button></span></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.myStatus=='死亡' "><el-button type="primary" @click="fxj()">预览抚恤金构成表</el-button></span></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.isNursingFee=='是' "><el-button type="primary" @click="downloadhlf()">查看护理费</el-button></span></span>
      <span v-if="this.dataForm.id"><span v-if="this.dataForm.isNursingFee=='是' "><el-button type="primary" @click="hlf()">预览护理费</el-button></span></span>
      <span v-if="this.dataForm.id"><el-button type="primary" @click="downloadshbt()">查看生活补贴构成表</el-button></span>
      <span v-if="this.dataForm.id"><el-button type="primary" @click="shbt()">预览生活补贴构成表</el-button></span>
    </span>
    <LXF1 v-if="addOrUpdateLXF1" ref="LXF1" ></LXF1>
    <LXF2 v-if="addOrUpdateLXF2" ref="LXF2" ></LXF2>
    <LXF3 v-if="addOrUpdateLXF3" ref="LXF3" ></LXF3>
    <LXF4 v-if="addOrUpdateLXF4" ref="LXF4" ></LXF4>
    <LXFXJ v-if="addOrUpdateLXFXJ" ref="LXFXJ" ></LXFXJ>
    <LXSHBT v-if="addOrUpdateLXSHBT" ref="LXSHBT" ></LXSHBT>
    <LXHLF v-if="addOrUpdateLXHLF" ref="LXHLF" ></LXHLF>
  </el-dialog>
</template>

<script>
  import LXF1 from './lxf1.vue'
  import LXF2 from './lxf2.vue'
  import LXF3 from './lxf3.vue'
  import LXF4 from './lxf4.vue'
  import LXFXJ from './lxfxj.vue'
  import LXSHBT from './lxshbt.vue'
  import LXHLF from './lxhlf.vue'
  import docxtemplater from 'docxtemplater';
  import PizZip from 'pizzip';
  import JSZipUtils from 'jszip-utils';
  import { saveAs } from 'file-saver';
  export default {
    data () {
      return {
        addOrUpdateLXF1:false,
        addOrUpdateLXF2:false,
        addOrUpdateLXF3:false,
        addOrUpdateLXF4:false,
        addOrUpdateLXFXJ:false,
        addOrUpdateLXSHBT:false,
        addOrUpdateLXHLF:false,
        logoutDateDisabled: false,
        deathDisabled: false,
        deathTimeDisabled: false,
        postLevel: false,
        salaryClass: false,
        allowanceRatioClass: false,
        wageGradeClass: false,
        rensonClass: false,
        visible: false,
        activeName: "first",
        dataList: [],
        nativePlaceList:[],
        registrationNoList:[],
        medicalInsuranceList:[],
        isNursingFeeList:[],
        sexList: [],
        workersClassificationList: [],
        countyList: [],
        streetList: [],
        nationList: [],
        politicalFaceList: [],
        retirementStatusList: [],
        dutiesList: [],
        originalTroopsList: [],
        handoverPeriodList: [],
        handoverModeList: [],
        handoverBatchList: [],
        enjoyAllowanceList: [],
        specialAllowanceList: [],
        receptionList: [],
        myStatusList: [],
        treatmentStandardList: [],
        personnelClassificationList: [],
        housingSituationList: [],
        housingPropertyRightList: [],
        leaseholderList: [],
        isImproveList: [],
        postLevelList: [],
        allowanceRatioList: [],
        wageGradeList: [],
        rensonList: [],
        wageLevelList: [],
        deathList: [],
        personTypeList: [],
        isTitle: "",
        isDisabled: false,
        visibleLine:"",
        dataForm: {
          id: 0,
          areaCode: '',
          personalCode: '',
          name: '',
          sex: '',
          nation: '',
          politicalFace: '',
          idNo: '',
          birthDate: '',
          workTime: '',
          retirementTime: '',
          retirementStatus: '',
          duties: '',
          county: '',
          street: '',
          originalTroops: '',
          handoverTime: '',
          handoverMode: '',
          handoverBatch: '',
          workersClassification: '',
          myStatus: '',
          death: '',
          deathTime: '',
          reception: '',
          housingSituation: '',
          housingPropertyRight: '',
          leaseholder: '',
          housingArea: '',
          increasePension: '',
          totalMonthlyPension: '',
          address: '',
          phone: '',
          remarks: '',
          teachingAge: '',
          workingYears: '',
          workingYearsArmy: '',
          wageLevel: '',
          wageGrade: '',
          wageScale: '',
          retirementFeeProportion: '',
          senioritySalary: '',
          basicSalary: '',
          levelSalary: '',
          gradeSalary: '',
          salaryScale: '',
          bonusAllowance: '',
          serviceAllowance: '',
          seniorityAllowance: '',
          totalSubsidy: '',
          specialTeacherSubsidy: '',
          difficultySubsidy: '',
          raiseWages: '',
          retirementPayEightynine: '',
          retirementPayNinetytwo: '',
          retirementPayFirst: '',
          retirementPaySecond: '',
          retirementPayNinetyfive: '',
          retirementPayNinetyseven: '',
          retirementPayNinetysesec: '',
          retirementPayNinetynine: '',
          retirementPayNinetynisec: '',
          retirementPayZero: '',
          retirementPayOne: '',
          retirementPayOnenew: '',
          retirementPayOnsec: '',
          retirementPayThird: '',
          retirementPayThisec: '',
          retirementPayFive: '',
          retirementPaySix: '',
          retirementPayFourty: '',
          foodAllowanceSeventynine: '',
          foodAllowanceEightyeight: '',
          oilAllowanceNightyone: '',
          oilAllowanceNightytwo: '',
          fuelLlowance: '',
          meatLlowance: '',
          oilAllowanceNightythird: '',
          livingAllowanceEightyfive: '',
          livingAllowanceEightyei: '',
          livingAllowanceNightytw: '',
          livingAllowanceNightyfo: '',
          livingAllowanceNightyfive: '',
          livingAllowanceNightysix: '',
          livingAllowanceNightysev: '',
          livingAllowanceNightyeig: '',
          livingAllowanceNightynig: '',
          livingAllowanceZero: '',
          livingAllowanceOne: '',
          livingAllowanceTwo: '',
          livingAllowanceThird: '',
          livingAllowanceFour: '',
          livingAllowanceSeven: '',
          specialGoveAllowanc: '',
          paperMoney: '',
          carAllowance: '',
          bathSubsidy: '',
          honorAllowance: '',
          otherIncome: '',
          jobSubsidy: '',
          ageAllowance: '',
          holidaySubsidy: '',
          retirementAllowanceOneo: '',
          growthMechanismSubsidy: '',
          workingYearsSubsidy: '',
          proportionalSubsidy: '',
          workUnit: '',
          increaseProportion: '',
          renson: '',
          registrationNo: '',
          nativePlace: '',
          registeredResidence: '',
          zfgdTime: '',
          resettlementPlanTime: '',
          medicalInsurance: '',
          allowanceRatio: '',
          enjoyAllowance: '',
          specialAllowance: '',
          treatmentStandard: '',
          postLevel: '',
          salary: '',
          isImprove: '',
          personnelClassification: '',
          pensionMedicalSubsidy: '',
          nursingFee: '',
          isNursingFee: '',
          heatingSubsidy: '',
          serviceSubsidy: '',
          retirementPaySixteen: '',
          retirementPayEighteen: '',
          retirementPayNineteen: '',
          retirementPayTwentyseven: '',
          retirementPayTwentyten: '',
          logoutDate: '',
          personType: '',
          state: ''
        },
        dataRule: {
          areaCode: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
          personalCode: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
        //   name: [
        //     { required: true, message: '姓名不能为空', trigger: 'blur' }
        //   ],
        //   sex: [
        //     { required: true, message: '性别不能为空', trigger: 'blur' }
        //   ],
        //   nation: [
        //     { required: true, message: '民族不能为空', trigger: 'blur' }
        //   ],
        //   politicalFace: [
        //     { required: true, message: '政治面目不能为空', trigger: 'blur' }
        //   ],
          idNo: [
            {
              pattern: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
              message: "请输入正确的身份证号码",
            },
          ],
        //   birthDate: [
        //     { required: true, message: '出生年月不能为空', trigger: 'blur' }
        //   ],
        //   workTime: [
        //     { required: true, message: '参加工作时间不能为空', trigger: 'blur' }
        //   ],
        //   retirementTime: [
        //     { required: true, message: '退休时间不能为空', trigger: 'blur' }
        //   ],
        //   retirementStatus: [
        //     { required: true, message: '退休前身份不能为空', trigger: 'blur' }
        //   ],
        //   duties: [
        //     { required: true, message: '职务不能为空', trigger: 'blur' }
        //   ],
        //   county: [
        //     { required: true, message: '所属区县不能为空', trigger: 'blur' }
        //   ],
        //   street: [
        //     { required: true, message: '所属街道不能为空', trigger: 'blur' }
        //   ],
        //   originalTroops: [
        //     { required: true, message: '原部队不能为空', trigger: 'blur' }
        //   ],
        //   handoverTime: [
        //     { required: true, message: '移交时间不能为空', trigger: 'blur' }
        //   ],
        //   handoverMode: [
        //     { required: true, message: '移交方式不能为空', trigger: 'blur' }
        //   ],
        //   handoverBatch: [
        //     { required: true, message: '移交批次不能为空', trigger: 'blur' }
        //   ],
        //   workersClassification: [
        //     { required: true, message: '职工分类不能为空', trigger: 'blur' }
        //   ],
        //   myStatus: [
        //     { required: true, message: '本人状态不能为空', trigger: 'blur' }
        //   ],
        //   death: [
        //     { required: true, message: '死亡不能为空', trigger: 'blur' }
        //   ],
        //   deathTime: [
        //     { required: true, message: '死亡时间不能为空', trigger: 'blur' }
        //   ],
        //   reception: [
        //     { required: true, message: '接收情况不能为空', trigger: 'blur' }
        //   ],
        //   housingSituation: [
        //     { required: true, message: '住房情况不能为空', trigger: 'blur' }
        //   ],
        //   housingPropertyRight: [
        //     { required: true, message: '住房房产权不能为空', trigger: 'blur' }
        //   ],
        //   leaseholder: [
        //     { required: true, message: '租赁人不能为空', trigger: 'blur' }
        //   ],
          housingArea: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
        //   increasePension: [
        //     { required: true, message: '增加退休金不能为空', trigger: 'blur' }
        //   ],
          totalMonthlyPension: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
        //   address: [
        //     { required: true, message: '家庭住址不能为空', trigger: 'blur' }
        //   ],
        //   phone: [
        //     { required: true, message: '电话号码不能为空', trigger: 'blur' }
        //   ],
        //   remarks: [
        //     { required: true, message: '备注不能为空', trigger: 'blur' }
        //   ],
          teachingAge: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
          workingYears: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
          workingYearsArmy: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
        //   wageLevel: [
        //     { required: true, message: '工资级别不能为空', trigger: 'blur' }
        //   ],
        //   wageGrade: [
        //     { required: true, message: '工资档次不能为空', trigger: 'blur' }
        //   ],
        //   wageScale: [
        //     { required: true, message: '工资等级不能为空', trigger: 'blur' }
        //   ],
          retirementFeeProportion: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
          senioritySalary: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          basicSalary: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          levelSalary: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          gradeSalary: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          salaryScale: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          bonusAllowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          serviceAllowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          seniorityAllowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          totalSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          specialTeacherSubsidy: [
            {
              pattern: /(^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d{1,3})?$)/,
              message: "请输入数值",
            },
          ],
          difficultySubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          raiseWages: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayEightynine: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetytwo: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayFirst: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPaySecond: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetyfive: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetyseven: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetysesec: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetynine: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayNinetynisec: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayZero: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayOne: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayOnenew: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayOnsec: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayThird: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayThisec: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayFive: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPaySix: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayFourty: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          foodAllowanceSeventynine: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          foodAllowanceEightyeight: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          oilAllowanceNightyone: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          oilAllowanceNightytwo: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          fuelLlowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          meatLlowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          oilAllowanceNightythird: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceEightyfive: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceEightyei: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightytw: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightyfo: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightyfive: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightysix: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightysev: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightyeig: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceNightynig: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceZero: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceOne: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceTwo: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceThird: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceFour: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          livingAllowanceSeven: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          specialGoveAllowanc: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          paperMoney: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          carAllowance: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
          bathSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          honorAllowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          otherIncome: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          jobSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          ageAllowance: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          holidaySubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementAllowanceOneo: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          growthMechanismSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          workingYearsSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          proportionalSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
        //   workUnit: [
        //     { required: true, message: '工作单位不能为空', trigger: 'blur' }
        //   ],
          increaseProportion: [
            {
              pattern: /^[0-9]*$/,
              message: "请输入数字",
            },
          ],
        //   renson: [
        //     { required: true, message: '提高比例原因不能为空', trigger: 'blur' }
        //   ],
        //   registrationNo: [
        //     { required: true, message: '登记证号不能为空', trigger: 'blur' }
        //   ],
        //   nativePlace: [
        //     { required: true, message: '籍贯不能为空', trigger: 'blur' }
        //   ],
        //   registeredResidence: [
        //     { required: true, message: '户籍所在地不能为空', trigger: 'blur' }
        //   ],
        //   zfgdTime: [
        //     { required: true, message: '政策规定退休时间不能为空', trigger: 'blur' }
        //   ],
        //   resettlementPlanTime: [
        //     { required: true, message: '列入安置计划时间不能为空', trigger: 'blur' }
        //   ],
        //   medicalInsurance: [
        //     { required: true, message: '是否参加医保不能为空', trigger: 'blur' }
        //   ],
        //   allowanceRatio: [
        //     { required: true, message: '奖金津贴比例不能为空', trigger: 'blur' }
        //   ],
        //   enjoyAllowance: [
        //     { required: true, message: '是否享受荣誉津贴不能为空', trigger: 'blur' }
        //   ],
        //   specialAllowance: [
        //     { required: true, message: '是否享受政府特殊津贴不能为空', trigger: 'blur' }
        //   ],
        //   treatmentStandard: [
        //     { required: true, message: '待遇标准不能为空', trigger: 'blur' }
        //   ],
        //   postLevel: [
        //     { required: true, message: '岗位级别不能为空', trigger: 'blur' }
        //   ],
        //   salary: [
        //     { required: true, message: '薪级不能为空', trigger: 'blur' }
        //   ],
        //   isImprove: [
        //     { required: true, message: '是否提高不能为空', trigger: 'blur' }
        //   ],
        //   personnelClassification: [
        //     { required: true, message: '技术人员分类不能为空', trigger: 'blur' }
        //   ],
          pensionMedicalSubsidy: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
          nursingFee: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
        //   isNursingFee: [
        //     { required: true, message: '是否享受护理费不能为空', trigger: 'blur' }
        //   ],
          heatingSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          serviceSubsidy: [
            {
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPaySixteen: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            },
          ],
          retirementPayEighteen: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
          retirementPayNineteen: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
          retirementPayTwentyseven: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
          retirementPayTwentyten: [
            { 
              pattern: /^\d*(\.\d{1,3})?$/,
              message: "请输入数值",
            }
          ],
        //   logoutDate: [
        //     { required: true, message: '注销日期不能为空', trigger: 'blur' }
        //   ],
        //   personType: [
        //     { required: true, message: '人员分类不能为空', trigger: 'blur' }
        //   ],
        //   state: [
        //     { required: true, message: '逻辑删除状态（0：正常，1：删除）不能为空', trigger: 'blur' }
        //   ]
        }
      }
    },
    components: {
     LXF1,
     LXF2,
     LXF3,
     LXF4,
     LXFXJ,
     LXSHBT,
     LXHLF
    },
    created() {
    this.dataForm.treatmentStandard = "事业单位标准";
    this.dataForm.handoverMode = "就地安置";
    this.dataForm.enjoyAllowance = "无";
    this.dataForm.specialAllowance = "否";
    this.dataForm.isImprove = "否";
    this.dataSex("SEX_GROUP");
    this.dataSex("EMPLOYEE");
    this.dataSex("AREA");
    this.dataSex("NATION");
    this.dataSex("ZZMM");
    this.dataSex("TXQSF");
    this.dataSex("YBD");
    this.dataSex("YJSJD");
    this.dataSex("YJFS");
    this.dataSex("YJPC");
    this.dataSex("SFXSRYJT");
    this.dataSex("SFXSZFTSJT");
    this.dataSex("LXJSQK");
    this.dataSex("BRZT");
    this.dataSex("DYBZ");
    this.dataSex("ZFQK");
    this.dataSex("ZFCQ");
    this.dataSex("FWZLR");
    this.dataSex("GZSFTG");
    this.dataSex("JJJTBL");
    this.dataSex("GGGZDC");
    this.dataSex("TGBLYY");
    this.dataSex("DEATH");
    this.dataSex("RYFL");
    //新增
    this.dataSex("JG");
    this.dataSex("YLZGFL");
    this.dataSex("CJYB");
    this.dataSex("CJYB");
    this.dataSex("CQBNZL");
  },
  computed: {
    //离休费基数信息
    resultA() {
      //不计算比例
      let basicSalary = this.dataForm.basicSalary; //基础工资
      let senioritySalary = this.dataForm.senioritySalary; //工龄工资
      let seniorityAllowance = this.dataForm.seniorityAllowance; //教护龄津贴
      let specialTeacherSubsidy = this.dataForm.specialTeacherSubsidy; //特级老师补贴
      //计算比例
      let raiseWages = this.dataForm.raiseWages; //提高工资10%
      let serviceAllowance = this.dataForm.serviceAllowance; //军队服务津贴
      let gradeSalary = this.dataForm.gradeSalary; //岗位工资(职务、级别标准工资)
      let levelSalary = this.dataForm.levelSalary; //级别工资
      let bonusAllowance = this.dataForm.bonusAllowance; //奖金津贴

     
      
      let sumBasicRe = 0;
      if (raiseWages !== "" && raiseWages !== null) {
        sumBasicRe = sumBasicRe + parseFloat(raiseWages);
      }
      if (serviceAllowance !== "" && serviceAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(serviceAllowance);
      }
      if (gradeSalary !== "" && gradeSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(gradeSalary);
      }
      if (levelSalary !== "" && levelSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(levelSalary);
      }
      if (bonusAllowance !== "" && bonusAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(bonusAllowance);
      }
      if (basicSalary !== "" && basicSalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(basicSalary);
      }
      if (senioritySalary !== "" && senioritySalary !== null) {
        sumBasicRe = sumBasicRe + parseFloat(senioritySalary);
      }
      if (seniorityAllowance !== "" && seniorityAllowance !== null) {
        sumBasicRe = sumBasicRe + parseFloat(seniorityAllowance);
      }
      if (specialTeacherSubsidy !== "" && specialTeacherSubsidy !== null) {
        sumBasicRe = sumBasicRe + parseFloat(specialTeacherSubsidy);
      }
      
      
      return parseFloat(sumBasicRe).toFixed(2);
    },
    //历次增加的退休费合计
    resultB() {
      let retirementPayEightynine = this.dataForm.retirementPayEightynine; //1989年10月增加退休费
      let retirementPayNinetyfive = this.dataForm.retirementPayNinetyfive; //1995年10月增加退休费
      let retirementPayNinetynisec = this.dataForm.retirementPayNinetynisec; //1999年10月增加退休费
      let retirementPayThisec = this.dataForm.retirementPayThisec; //2003年10月增加退休费
      let retirementPayFirst = this.dataForm.retirementPayFirst; //1993年10月第一步增加退休费
      let retirementPayNinetyseven = this.dataForm.retirementPayNinetyseven; //1997年7月增加退休费
      let retirementPayOne = this.dataForm.retirementPayOne; //2001年1月增加退休费
      let retirementPayThird = this.dataForm.retirementPayThird; //2003年7月增加退休费
      let retirementPayFourty = this.dataForm.retirementPayFourty; //2014年10月增加退休费
      let retirementPayNinetytwo = this.dataForm.retirementPayNinetytwo; //1992年3月提高退休费10％
      let retirementPayNinetysesec = this.dataForm.retirementPayNinetysesec; //1997年10月增加退休费
      let retirementPayOnsec = this.dataForm.retirementPayOnsec; //2001年10月增加退休费
      let retirementPayFive = this.dataForm.retirementPayFive; //2005年10月增加退休费
      let retirementPaySecond = this.dataForm.retirementPaySecond; //1993年10月第二步增加退休费
      let retirementPayNinetynine = this.dataForm.retirementPayNinetynine; //1999年7月增加退休费
      let retirementPayOnenew = this.dataForm.retirementPayOnenew; //2001年10月新增退休费
      let retirementPaySix = this.dataForm.retirementPaySix; //2006年7月增加退休费
      let retirementPaySixteen = this.dataForm.retirementPaySixteen//2016年7月增加离休费
      let retirementPayEighteen = this.dataForm.retirementPayEighteen//2018年7月增加离休费
      let retirementPayTwentyten = this.dataForm.retirementPayTwentyten//2021年10月增加离休费
      let sumAddRe = 0;
      if (retirementPayEightynine !== "" && retirementPayEightynine !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayEightynine);
      }
      if (retirementPayNinetyfive !== "" && retirementPayNinetyfive !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetyfive);
      }
      if (retirementPayNinetynisec !== "" && retirementPayNinetynisec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetynisec);
      }
      if (retirementPayThisec !== "" && retirementPayThisec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayThisec);
      }
      if (retirementPayFirst !== "" && retirementPayFirst !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFirst);
      }
      if (retirementPayNinetyseven !== "" && retirementPayNinetyseven !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetyseven);
      }
      if (retirementPayOne !== "" && retirementPayOne !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOne);
      }
      if (retirementPayThird !== "" && retirementPayThird !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayThird);
      }
      if (retirementPayFourty !== "" && retirementPayFourty !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFourty);
      }
      if (retirementPayNinetytwo !== "" && retirementPayNinetytwo !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetytwo);
      }
      if (retirementPayNinetysesec !== "" && retirementPayNinetysesec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetysesec);
      }
      if (retirementPayOnsec !== "" && retirementPayOnsec !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOnsec);
      }
      if (retirementPayFive !== "" && retirementPayFive !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayFive);
      }
      if (retirementPaySecond !== "" && retirementPaySecond !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPaySecond);
      }
      if (retirementPayNinetynine !== "" && retirementPayNinetynine !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayNinetynine);
      }
      if (retirementPayOnenew !== "" && retirementPayOnenew !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayOnenew);
      }
      if (retirementPaySix !== "" && retirementPaySix !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPaySix);
      }
      if (retirementPaySixteen !== "" && retirementPaySixteen !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPaySixteen);
      }
      if (retirementPayEighteen !== "" && retirementPayEighteen !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayEighteen);
      }
      if (retirementPayTwentyten !== "" && retirementPayTwentyten !== null) {
        sumAddRe = sumAddRe + parseFloat(retirementPayTwentyten);
      }
      return parseFloat(sumAddRe).toFixed(2);
    },
    //增长机制其它补贴合计
    resultG() {
      let pensionMedicalSubsidy = this.dataForm.pensionMedicalSubsidy//养老医疗补贴
      let nursingFee = this.dataForm.nursingFee//护理费（自雇费）
      let carAllowance = this.dataForm.carAllowance//用车包干补贴
      let growthMechanismSubsidy = this.dataForm.growthMechanismSubsidy//2012年增长机制补贴
      let retirementPayNineteen = this.dataForm.retirementPayNineteen//2019年1月增加离休补贴
      let retirementPayTwentyseven = this.dataForm.retirementPayTwentyseven//2021年7月增加离休补贴
      let honorAllowance = this.dataForm.honorAllowance; //荣誉津贴
      let serviceSubsidy = this.dataForm.serviceSubsidy; //物业服务补贴
      let sumOther = 0;
      if (pensionMedicalSubsidy !== "" && pensionMedicalSubsidy !== null) {
        sumOther = sumOther + parseFloat(pensionMedicalSubsidy);
      }
      if (nursingFee !== "" && nursingFee !== null) {
        sumOther = sumOther + parseFloat(nursingFee);
      }
      if (carAllowance !== "" && carAllowance !== null) {
        sumOther = sumOther + parseFloat(carAllowance);
      }
      if (growthMechanismSubsidy !== "" && growthMechanismSubsidy !== null) {
        sumOther = sumOther + parseFloat(growthMechanismSubsidy);
      }
      if (retirementPayNineteen !== "" && retirementPayNineteen !== null) {
        sumOther = sumOther + parseFloat(retirementPayNineteen);
      }
      if (retirementPayTwentyseven !== "" && retirementPayTwentyseven !== null) {
        sumOther = sumOther + parseFloat(retirementPayTwentyseven);
      }
      if (honorAllowance !== "" && honorAllowance !== null) {
        sumOther = sumOther + parseFloat(honorAllowance);
      }
      if (serviceSubsidy !== "" && serviceSubsidy !== null) {
        sumOther = sumOther + parseFloat(serviceSubsidy);
      }
      return parseFloat(sumOther).toFixed(2);
    },
    //自动生成退休费总额
    resultH() {
      let resultA = this.resultA;
      let resultB = this.resultB;
      let resultG = this.resultG;
      let sum = 0;
      if (resultA !== "" && resultA !== null) {
        sum = sum + parseFloat(resultA);
      }
      if (resultB !== "" && resultB !== null) {
        sum = sum + parseFloat(resultB);
      }
      if (resultG !== "" && resultG !== null) {
        sum = sum + parseFloat(resultG);
      }
      return sum;
    },
    //退休费的差额
    resultI() {
      let resultH = this.resultH;
      let totalMonthlyPension = this.dataForm.totalMonthlyPension;
      let sum = 0;
      if (resultH !== "" && resultH !== null && totalMonthlyPension !== "" && totalMonthlyPension !== null ) {
        sum = parseFloat(resultH) - parseFloat(totalMonthlyPension);
      }
      return parseFloat(sum).toFixed(2);
    },
    //年离休费总额
    resultK(){
      let totalMonthlyPension = this.dataForm.totalMonthlyPension;
      let yearSum = 0;
      yearSum = totalMonthlyPension*12
       return parseFloat(yearSum).toFixed(2);
    }

  },
  methods: {
      openChangeTital() {
        if (this.dataForm.id == 0) {
          this.isTitle = "新增";
        } else if (this.isDisabled) {
          this.isTitle = "查看";
        } else {
          this.isTitle = "修改";
        }
      },
      viewShow(id){
        this.dataForm.id = id || 0;
        this.visible = true;
        this.$nextTick(() => {
          this.$refs["dataForm"].resetFields();
          if (this.dataForm.id) {
            this.$http({
              url: this.$http.adornUrl(
                `/jxxm/honorableemployees/info/${this.dataForm.id}`
              ),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              if (data && data.code === 0) {
                this.dataForm.areaCode = data.honorableEmployees.areaCode
                this.dataForm.personalCode = data.honorableEmployees.personalCode
                this.dataForm.name = data.honorableEmployees.name
                this.dataForm.sex = data.honorableEmployees.sex
                this.dataForm.nation = data.honorableEmployees.nation
                this.dataForm.politicalFace = data.honorableEmployees.politicalFace
                this.dataForm.idNo = data.honorableEmployees.idNo
                this.dataForm.birthDate = data.honorableEmployees.birthDate
                this.dataForm.workTime = data.honorableEmployees.workTime
                this.dataForm.retirementTime = data.honorableEmployees.retirementTime
                this.dataForm.retirementStatus = data.honorableEmployees.retirementStatus
                this.dataForm.duties = data.honorableEmployees.duties
                this.dataForm.county = data.honorableEmployees.county
                this.dataForm.street = data.honorableEmployees.street
                this.dataForm.originalTroops = data.honorableEmployees.originalTroops
                this.dataForm.handoverTime = data.honorableEmployees.handoverTime
                this.dataForm.handoverMode = data.honorableEmployees.handoverMode
                this.dataForm.handoverBatch = data.honorableEmployees.handoverBatch
                this.dataForm.workersClassification = data.honorableEmployees.workersClassification
                this.dataForm.myStatus = data.honorableEmployees.myStatus
                this.dataForm.death = data.honorableEmployees.death
                this.dataForm.deathTime = data.honorableEmployees.deathTime
                this.dataForm.reception = data.honorableEmployees.reception
                this.dataForm.housingSituation = data.honorableEmployees.housingSituation
                this.dataForm.housingPropertyRight = data.honorableEmployees.housingPropertyRight
                this.dataForm.leaseholder = data.honorableEmployees.leaseholder
                this.dataForm.housingArea = data.honorableEmployees.housingArea
                this.dataForm.increasePension = data.honorableEmployees.increasePension
                this.dataForm.totalMonthlyPension = data.honorableEmployees.totalMonthlyPension
                this.dataForm.address = data.honorableEmployees.address
                this.dataForm.phone = data.honorableEmployees.phone
                this.dataForm.remarks = data.honorableEmployees.remarks
                this.dataForm.teachingAge = data.honorableEmployees.teachingAge
                this.dataForm.workingYears = data.honorableEmployees.workingYears
                this.dataForm.workingYearsArmy = data.honorableEmployees.workingYearsArmy
                this.dataForm.wageLevel = data.honorableEmployees.wageLevel
                this.dataForm.wageGrade = data.honorableEmployees.wageGrade
                this.dataForm.wageScale = data.honorableEmployees.wageScale
                this.dataForm.retirementFeeProportion = data.honorableEmployees.retirementFeeProportion
                this.dataForm.senioritySalary = data.honorableEmployees.senioritySalary
                this.dataForm.basicSalary = data.honorableEmployees.basicSalary
                this.dataForm.levelSalary = data.honorableEmployees.levelSalary
                this.dataForm.gradeSalary = data.honorableEmployees.gradeSalary
                this.dataForm.salaryScale = data.honorableEmployees.salaryScale
                this.dataForm.bonusAllowance = data.honorableEmployees.bonusAllowance
                this.dataForm.serviceAllowance = data.honorableEmployees.serviceAllowance
                this.dataForm.seniorityAllowance = data.honorableEmployees.seniorityAllowance
                this.dataForm.totalSubsidy = data.honorableEmployees.totalSubsidy
                this.dataForm.specialTeacherSubsidy = data.honorableEmployees.specialTeacherSubsidy
                this.dataForm.difficultySubsidy = data.honorableEmployees.difficultySubsidy
                this.dataForm.raiseWages = data.honorableEmployees.raiseWages
                this.dataForm.retirementPayEightynine = data.honorableEmployees.retirementPayEightynine
                this.dataForm.retirementPayNinetytwo = data.honorableEmployees.retirementPayNinetytwo
                this.dataForm.retirementPayFirst = data.honorableEmployees.retirementPayFirst
                this.dataForm.retirementPaySecond = data.honorableEmployees.retirementPaySecond
                this.dataForm.retirementPayNinetyfive = data.honorableEmployees.retirementPayNinetyfive
                this.dataForm.retirementPayNinetyseven = data.honorableEmployees.retirementPayNinetyseven
                this.dataForm.retirementPayNinetysesec = data.honorableEmployees.retirementPayNinetysesec
                this.dataForm.retirementPayNinetynine = data.honorableEmployees.retirementPayNinetynine
                this.dataForm.retirementPayNinetynisec = data.honorableEmployees.retirementPayNinetynisec
                this.dataForm.retirementPayZero = data.honorableEmployees.retirementPayZero
                this.dataForm.retirementPayOne = data.honorableEmployees.retirementPayOne
                this.dataForm.retirementPayOnenew = data.honorableEmployees.retirementPayOnenew
                this.dataForm.retirementPayOnsec = data.honorableEmployees.retirementPayOnsec
                this.dataForm.retirementPayThird = data.honorableEmployees.retirementPayThird
                this.dataForm.retirementPayThisec = data.honorableEmployees.retirementPayThisec
                this.dataForm.retirementPayFive = data.honorableEmployees.retirementPayFive
                this.dataForm.retirementPaySix = data.honorableEmployees.retirementPaySix
                this.dataForm.retirementPayFourty = data.honorableEmployees.retirementPayFourty
                this.dataForm.foodAllowanceSeventynine = data.honorableEmployees.foodAllowanceSeventynine
                this.dataForm.foodAllowanceEightyeight = data.honorableEmployees.foodAllowanceEightyeight
                this.dataForm.oilAllowanceNightyone = data.honorableEmployees.oilAllowanceNightyone
                this.dataForm.oilAllowanceNightytwo = data.honorableEmployees.oilAllowanceNightytwo
                this.dataForm.fuelLlowance = data.honorableEmployees.fuelLlowance
                this.dataForm.meatLlowance = data.honorableEmployees.meatLlowance
                this.dataForm.oilAllowanceNightythird = data.honorableEmployees.oilAllowanceNightythird
                this.dataForm.livingAllowanceEightyfive = data.honorableEmployees.livingAllowanceEightyfive
                this.dataForm.livingAllowanceEightyei = data.honorableEmployees.livingAllowanceEightyei
                this.dataForm.livingAllowanceNightytw = data.honorableEmployees.livingAllowanceNightytw
                this.dataForm.livingAllowanceNightyfo = data.honorableEmployees.livingAllowanceNightyfo
                this.dataForm.livingAllowanceNightyfive = data.honorableEmployees.livingAllowanceNightyfive
                this.dataForm.livingAllowanceNightysix = data.honorableEmployees.livingAllowanceNightysix
                this.dataForm.livingAllowanceNightysev = data.honorableEmployees.livingAllowanceNightysev
                this.dataForm.livingAllowanceNightyeig = data.honorableEmployees.livingAllowanceNightyeig
                this.dataForm.livingAllowanceNightynig = data.honorableEmployees.livingAllowanceNightynig
                this.dataForm.livingAllowanceZero = data.honorableEmployees.livingAllowanceZero
                this.dataForm.livingAllowanceOne = data.honorableEmployees.livingAllowanceOne
                this.dataForm.livingAllowanceTwo = data.honorableEmployees.livingAllowanceTwo
                this.dataForm.livingAllowanceThird = data.honorableEmployees.livingAllowanceThird
                this.dataForm.livingAllowanceFour = data.honorableEmployees.livingAllowanceFour
                this.dataForm.livingAllowanceSeven = data.honorableEmployees.livingAllowanceSeven
                this.dataForm.specialGoveAllowanc = data.honorableEmployees.specialGoveAllowanc
                this.dataForm.paperMoney = data.honorableEmployees.paperMoney
                this.dataForm.carAllowance = data.honorableEmployees.carAllowance
                this.dataForm.bathSubsidy = data.honorableEmployees.bathSubsidy
                this.dataForm.honorAllowance = data.honorableEmployees.honorAllowance
                this.dataForm.otherIncome = data.honorableEmployees.otherIncome
                this.dataForm.jobSubsidy = data.honorableEmployees.jobSubsidy
                this.dataForm.ageAllowance = data.honorableEmployees.ageAllowance
                this.dataForm.holidaySubsidy = data.honorableEmployees.holidaySubsidy
                this.dataForm.retirementAllowanceOneo = data.honorableEmployees.retirementAllowanceOneo
                this.dataForm.growthMechanismSubsidy = data.honorableEmployees.growthMechanismSubsidy
                this.dataForm.workingYearsSubsidy = data.honorableEmployees.workingYearsSubsidy
                this.dataForm.proportionalSubsidy = data.honorableEmployees.proportionalSubsidy
                this.dataForm.workUnit = data.honorableEmployees.workUnit
                this.dataForm.increaseProportion = data.honorableEmployees.increaseProportion
                this.dataForm.renson = data.honorableEmployees.renson
                this.dataForm.registrationNo = data.honorableEmployees.registrationNo
                this.dataForm.nativePlace = data.honorableEmployees.nativePlace
                this.dataForm.registeredResidence = data.honorableEmployees.registeredResidence
                this.dataForm.zfgdTime = data.honorableEmployees.zfgdTime
                this.dataForm.resettlementPlanTime = data.honorableEmployees.resettlementPlanTime
                this.dataForm.medicalInsurance = data.honorableEmployees.medicalInsurance
                this.dataForm.allowanceRatio = data.honorableEmployees.allowanceRatio
                this.dataForm.enjoyAllowance = data.honorableEmployees.enjoyAllowance
                this.dataForm.specialAllowance = data.honorableEmployees.specialAllowance
                this.dataForm.treatmentStandard = data.honorableEmployees.treatmentStandard
                this.dataForm.postLevel = data.honorableEmployees.postLevel
                this.dataForm.salary = data.honorableEmployees.salary
                this.dataForm.isImprove = data.honorableEmployees.isImprove
                this.dataForm.personnelClassification = data.honorableEmployees.personnelClassification
                this.dataForm.pensionMedicalSubsidy = data.honorableEmployees.pensionMedicalSubsidy
                this.dataForm.nursingFee = data.honorableEmployees.nursingFee
                this.dataForm.isNursingFee = data.honorableEmployees.isNursingFee
                this.dataForm.heatingSubsidy = data.honorableEmployees.heatingSubsidy
                this.dataForm.serviceSubsidy = data.honorableEmployees.serviceSubsidy
                this.dataForm.retirementPaySixteen = data.honorableEmployees.retirementPaySixteen
                this.dataForm.retirementPayEighteen = data.honorableEmployees.retirementPayEighteen
                this.dataForm.retirementPayNineteen = data.honorableEmployees.retirementPayNineteen
                this.dataForm.retirementPayTwentyseven = data.honorableEmployees.retirementPayTwentyseven
                this.dataForm.retirementPayTwentyten = data.honorableEmployees.retirementPayTwentyten
                this.dataForm.logoutDate = data.honorableEmployees.logoutDate
                this.dataForm.personType = data.honorableEmployees.personType
                this.dataForm.state = data.honorableEmployees.state
              }
              this.dataHandle(
                this.dataForm.myStatus,
                this.dataForm.retirementTime
              );
            });
          } else {
            this.dataHandle(
              this.dataForm.myStatus,
              this.dataForm.retirementTime
            );
          }
        });
        this.isDisabled = true;
        this.visibleLine = "none";
      },
      init (id) {
        this.dataForm.id = id || 0
        this.visible = true
        this.$nextTick(() => {
          this.$refs['dataForm'].resetFields()
          if (this.dataForm.id) {
            this.$http({
              url: this.$http.adornUrl(`/jxxm/honorableemployees/info/${this.dataForm.id}`),
              method: 'get',
              params: this.$http.adornParams()
            }).then(({data}) => {
              if (data && data.code === 0) {
                this.dataForm.areaCode = data.honorableEmployees.areaCode
                this.dataForm.personalCode = data.honorableEmployees.personalCode
                this.dataForm.name = data.honorableEmployees.name
                this.dataForm.sex = data.honorableEmployees.sex
                this.dataForm.nation = data.honorableEmployees.nation
                this.dataForm.politicalFace = data.honorableEmployees.politicalFace
                this.dataForm.idNo = data.honorableEmployees.idNo
                this.dataForm.birthDate = data.honorableEmployees.birthDate
                this.dataForm.workTime = data.honorableEmployees.workTime
                this.dataForm.retirementTime = data.honorableEmployees.retirementTime
                this.dataForm.retirementStatus = data.honorableEmployees.retirementStatus
                this.dataForm.duties = data.honorableEmployees.duties
                this.dataForm.county = data.honorableEmployees.county
                this.dataForm.street = data.honorableEmployees.street
                this.dataForm.originalTroops = data.honorableEmployees.originalTroops
                this.dataForm.handoverTime = data.honorableEmployees.handoverTime
                this.dataForm.handoverMode = data.honorableEmployees.handoverMode
                this.dataForm.handoverBatch = data.honorableEmployees.handoverBatch
                this.dataForm.workersClassification = data.honorableEmployees.workersClassification
                this.dataForm.myStatus = data.honorableEmployees.myStatus
                this.dataForm.death = data.honorableEmployees.death
                this.dataForm.deathTime = data.honorableEmployees.deathTime
                this.dataForm.reception = data.honorableEmployees.reception
                this.dataForm.housingSituation = data.honorableEmployees.housingSituation
                this.dataForm.housingPropertyRight = data.honorableEmployees.housingPropertyRight
                this.dataForm.leaseholder = data.honorableEmployees.leaseholder
                this.dataForm.housingArea = data.honorableEmployees.housingArea
                this.dataForm.increasePension = data.honorableEmployees.increasePension
                this.dataForm.totalMonthlyPension = data.honorableEmployees.totalMonthlyPension
                this.dataForm.address = data.honorableEmployees.address
                this.dataForm.phone = data.honorableEmployees.phone
                this.dataForm.remarks = data.honorableEmployees.remarks
                this.dataForm.teachingAge = data.honorableEmployees.teachingAge
                this.dataForm.workingYears = data.honorableEmployees.workingYears
                this.dataForm.workingYearsArmy = data.honorableEmployees.workingYearsArmy
                this.dataForm.wageLevel = data.honorableEmployees.wageLevel
                this.dataForm.wageGrade = data.honorableEmployees.wageGrade
                this.dataForm.wageScale = data.honorableEmployees.wageScale
                this.dataForm.retirementFeeProportion = data.honorableEmployees.retirementFeeProportion
                this.dataForm.senioritySalary = data.honorableEmployees.senioritySalary
                this.dataForm.basicSalary = data.honorableEmployees.basicSalary
                this.dataForm.levelSalary = data.honorableEmployees.levelSalary
                this.dataForm.gradeSalary = data.honorableEmployees.gradeSalary
                this.dataForm.salaryScale = data.honorableEmployees.salaryScale
                this.dataForm.bonusAllowance = data.honorableEmployees.bonusAllowance
                this.dataForm.serviceAllowance = data.honorableEmployees.serviceAllowance
                this.dataForm.seniorityAllowance = data.honorableEmployees.seniorityAllowance
                this.dataForm.totalSubsidy = data.honorableEmployees.totalSubsidy
                this.dataForm.specialTeacherSubsidy = data.honorableEmployees.specialTeacherSubsidy
                this.dataForm.difficultySubsidy = data.honorableEmployees.difficultySubsidy
                this.dataForm.raiseWages = data.honorableEmployees.raiseWages
                this.dataForm.retirementPayEightynine = data.honorableEmployees.retirementPayEightynine
                this.dataForm.retirementPayNinetytwo = data.honorableEmployees.retirementPayNinetytwo
                this.dataForm.retirementPayFirst = data.honorableEmployees.retirementPayFirst
                this.dataForm.retirementPaySecond = data.honorableEmployees.retirementPaySecond
                this.dataForm.retirementPayNinetyfive = data.honorableEmployees.retirementPayNinetyfive
                this.dataForm.retirementPayNinetyseven = data.honorableEmployees.retirementPayNinetyseven
                this.dataForm.retirementPayNinetysesec = data.honorableEmployees.retirementPayNinetysesec
                this.dataForm.retirementPayNinetynine = data.honorableEmployees.retirementPayNinetynine
                this.dataForm.retirementPayNinetynisec = data.honorableEmployees.retirementPayNinetynisec
                this.dataForm.retirementPayZero = data.honorableEmployees.retirementPayZero
                this.dataForm.retirementPayOne = data.honorableEmployees.retirementPayOne
                this.dataForm.retirementPayOnenew = data.honorableEmployees.retirementPayOnenew
                this.dataForm.retirementPayOnsec = data.honorableEmployees.retirementPayOnsec
                this.dataForm.retirementPayThird = data.honorableEmployees.retirementPayThird
                this.dataForm.retirementPayThisec = data.honorableEmployees.retirementPayThisec
                this.dataForm.retirementPayFive = data.honorableEmployees.retirementPayFive
                this.dataForm.retirementPaySix = data.honorableEmployees.retirementPaySix
                this.dataForm.retirementPayFourty = data.honorableEmployees.retirementPayFourty
                this.dataForm.foodAllowanceSeventynine = data.honorableEmployees.foodAllowanceSeventynine
                this.dataForm.foodAllowanceEightyeight = data.honorableEmployees.foodAllowanceEightyeight
                this.dataForm.oilAllowanceNightyone = data.honorableEmployees.oilAllowanceNightyone
                this.dataForm.oilAllowanceNightytwo = data.honorableEmployees.oilAllowanceNightytwo
                this.dataForm.fuelLlowance = data.honorableEmployees.fuelLlowance
                this.dataForm.meatLlowance = data.honorableEmployees.meatLlowance
                this.dataForm.oilAllowanceNightythird = data.honorableEmployees.oilAllowanceNightythird
                this.dataForm.livingAllowanceEightyfive = data.honorableEmployees.livingAllowanceEightyfive
                this.dataForm.livingAllowanceEightyei = data.honorableEmployees.livingAllowanceEightyei
                this.dataForm.livingAllowanceNightytw = data.honorableEmployees.livingAllowanceNightytw
                this.dataForm.livingAllowanceNightyfo = data.honorableEmployees.livingAllowanceNightyfo
                this.dataForm.livingAllowanceNightyfive = data.honorableEmployees.livingAllowanceNightyfive
                this.dataForm.livingAllowanceNightysix = data.honorableEmployees.livingAllowanceNightysix
                this.dataForm.livingAllowanceNightysev = data.honorableEmployees.livingAllowanceNightysev
                this.dataForm.livingAllowanceNightyeig = data.honorableEmployees.livingAllowanceNightyeig
                this.dataForm.livingAllowanceNightynig = data.honorableEmployees.livingAllowanceNightynig
                this.dataForm.livingAllowanceZero = data.honorableEmployees.livingAllowanceZero
                this.dataForm.livingAllowanceOne = data.honorableEmployees.livingAllowanceOne
                this.dataForm.livingAllowanceTwo = data.honorableEmployees.livingAllowanceTwo
                this.dataForm.livingAllowanceThird = data.honorableEmployees.livingAllowanceThird
                this.dataForm.livingAllowanceFour = data.honorableEmployees.livingAllowanceFour
                this.dataForm.livingAllowanceSeven = data.honorableEmployees.livingAllowanceSeven
                this.dataForm.specialGoveAllowanc = data.honorableEmployees.specialGoveAllowanc
                this.dataForm.paperMoney = data.honorableEmployees.paperMoney
                this.dataForm.carAllowance = data.honorableEmployees.carAllowance
                this.dataForm.bathSubsidy = data.honorableEmployees.bathSubsidy
                this.dataForm.honorAllowance = data.honorableEmployees.honorAllowance
                this.dataForm.otherIncome = data.honorableEmployees.otherIncome
                this.dataForm.jobSubsidy = data.honorableEmployees.jobSubsidy
                this.dataForm.ageAllowance = data.honorableEmployees.ageAllowance
                this.dataForm.holidaySubsidy = data.honorableEmployees.holidaySubsidy
                this.dataForm.retirementAllowanceOneo = data.honorableEmployees.retirementAllowanceOneo
                this.dataForm.growthMechanismSubsidy = data.honorableEmployees.growthMechanismSubsidy
                this.dataForm.workingYearsSubsidy = data.honorableEmployees.workingYearsSubsidy
                this.dataForm.proportionalSubsidy = data.honorableEmployees.proportionalSubsidy
                this.dataForm.workUnit = data.honorableEmployees.workUnit
                this.dataForm.increaseProportion = data.honorableEmployees.increaseProportion
                this.dataForm.renson = data.honorableEmployees.renson
                this.dataForm.registrationNo = data.honorableEmployees.registrationNo
                this.dataForm.nativePlace = data.honorableEmployees.nativePlace
                this.dataForm.registeredResidence = data.honorableEmployees.registeredResidence
                this.dataForm.zfgdTime = data.honorableEmployees.zfgdTime
                this.dataForm.resettlementPlanTime = data.honorableEmployees.resettlementPlanTime
                this.dataForm.medicalInsurance = data.honorableEmployees.medicalInsurance
                this.dataForm.allowanceRatio = data.honorableEmployees.allowanceRatio
                this.dataForm.enjoyAllowance = data.honorableEmployees.enjoyAllowance
                this.dataForm.specialAllowance = data.honorableEmployees.specialAllowance
                this.dataForm.treatmentStandard = data.honorableEmployees.treatmentStandard
                this.dataForm.postLevel = data.honorableEmployees.postLevel
                this.dataForm.salary = data.honorableEmployees.salary
                this.dataForm.isImprove = data.honorableEmployees.isImprove
                this.dataForm.personnelClassification = data.honorableEmployees.personnelClassification
                this.dataForm.pensionMedicalSubsidy = data.honorableEmployees.pensionMedicalSubsidy
                this.dataForm.nursingFee = data.honorableEmployees.nursingFee
                this.dataForm.isNursingFee = data.honorableEmployees.isNursingFee
                this.dataForm.heatingSubsidy = data.honorableEmployees.heatingSubsidy
                this.dataForm.serviceSubsidy = data.honorableEmployees.serviceSubsidy
                this.dataForm.retirementPaySixteen = data.honorableEmployees.retirementPaySixteen
                this.dataForm.retirementPayEighteen = data.honorableEmployees.retirementPayEighteen
                this.dataForm.retirementPayNineteen = data.honorableEmployees.retirementPayNineteen
                this.dataForm.retirementPayTwentyseven = data.honorableEmployees.retirementPayTwentyseven
                this.dataForm.retirementPayTwentyten = data.honorableEmployees.retirementPayTwentyten
                this.dataForm.logoutDate = data.honorableEmployees.logoutDate
                this.dataForm.personType = data.honorableEmployees.personType
                this.dataForm.state = data.honorableEmployees.state
              }
              this.dataHandle(
                this.dataForm.myStatus,
                this.dataForm.retirementTime
              );
            })
          } else {
            this.dataHandle(
              this.dataForm.myStatus,
              this.dataForm.retirementTime
            );
          }
        })
         this.isDisabled = false;
         this.visibleLine = "";
      },
      dataHandle(val, reVal) {
        if (val != null && val != "") {
          if (val == "在世") {
            this.logoutDateDisabled = true;
            this.deathDisabled = true;
            this.deathTimeDisabled = true;
          } else {
            this.logoutDateDisabled = false;
            this.deathDisabled = false;
            this.deathTimeDisabled = false;
          }
        } else {
          this.logoutDateDisabled = false;
          this.deathDisabled = false;
          this.deathTimeDisabled = false;
        }
        if (reVal != null && reVal != "") {
          let nian = parseInt(reVal.substring(0, 4));
          let month = parseInt(reVal.substring(5, 7));
          // if (nian < 2006) {
          //   this.postLevel = true;
          //   this.salaryClass = true;
          // } else if (nian == 2006 && month < 7) {
          //   this.postLevel = true;
          //   this.salaryClass = true;
          // } else {
          //   this.postLevel = false;
          //   this.salaryClass = false;
          // }
          //奖金津贴比例
          if (nian > 2006 || nian < 1993) {
            this.allowanceRatioClass = true;
          } else if (nian == 2006 && month > 6) {
            this.allowanceRatioClass = true;
          } else if (nian == 1993 && month < 10) {
            this.allowanceRatioClass = true;
          } else {
            this.allowanceRatioClass = false;
          }
          //85-06工改工资档次
          if (nian > 2006 || nian < 1985) {
            this.wageGradeClass = true;
          } else if (nian == 2006 && month > 6) {
            this.wageGradeClass = true;
          } else if (nian == 1985 && month < 7) {
            this.wageGradeClass = true;
          } else {
            this.wageGradeClass = false;
          }
        } else {
          // this.postLevel = false;
          // this.salaryClass = false;
          this.allowanceRatioClass = false;
          this.wageGradeClass = false;
        }
        // inPro = parseInt(inPro);
        // if (inPro == 0) {
        //   this.rensonClass = true;
        // } else {
        //   this.rensonClass = false;
        // }
      },
      // 表单提交
      dataFormSubmit () {
        this.$refs['dataForm'].validate((valid) => {
          if (valid) {
            this.$http({
              url: this.$http.adornUrl(`/jxxm/honorableemployees/${!this.dataForm.id ? 'save' : 'update'}`),
              method: 'post',
              data: this.$http.adornData({
                'id': this.dataForm.id || undefined,
                'areaCode': this.dataForm.areaCode,
                'personalCode': this.dataForm.personalCode,
                'name': this.dataForm.name,
                'sex': this.dataForm.sex,
                'nation': this.dataForm.nation,
                'politicalFace': this.dataForm.politicalFace,
                'idNo': this.dataForm.idNo,
                'birthDate': this.dataForm.birthDate,
                'workTime': this.dataForm.workTime,
                'retirementTime': this.dataForm.retirementTime,
                'retirementStatus': this.dataForm.retirementStatus,
                'duties': this.dataForm.duties,
                'county': this.dataForm.county,
                'street': this.dataForm.street,
                'originalTroops': this.dataForm.originalTroops,
                'handoverTime': this.dataForm.handoverTime,
                'handoverMode': this.dataForm.handoverMode,
                'handoverBatch': this.dataForm.handoverBatch,
                'workersClassification': this.dataForm.workersClassification,
                'myStatus': this.dataForm.myStatus,
                'death': this.dataForm.death,
                'deathTime': this.dataForm.deathTime,
                'reception': this.dataForm.reception,
                'housingSituation': this.dataForm.housingSituation,
                'housingPropertyRight': this.dataForm.housingPropertyRight,
                'leaseholder': this.dataForm.leaseholder,
                'housingArea': this.dataForm.housingArea,
                'increasePension': this.dataForm.increasePension,
                'totalMonthlyPension': this.dataForm.totalMonthlyPension || 0,
                'address': this.dataForm.address,
                'phone': this.dataForm.phone,
                'remarks': this.dataForm.remarks,
                'teachingAge': this.dataForm.teachingAge || 0,
                'workingYears': this.dataForm.workingYears,
                'workingYearsArmy': this.dataForm.workingYearsArmy,
                'wageLevel': this.dataForm.wageLevel,
                'wageGrade': this.dataForm.wageGrade,
                'wageScale': this.dataForm.wageScale,
                'retirementFeeProportion': this.dataForm.retirementFeeProportion || 100,
                'senioritySalary': this.dataForm.senioritySalary || 0,
                'basicSalary': this.dataForm.basicSalary || 0,
                'levelSalary': this.dataForm.levelSalary || 0,
                'gradeSalary': this.dataForm.gradeSalary || 0,
                'salaryScale': this.dataForm.salaryScale,
                'bonusAllowance': this.dataForm.bonusAllowance || 0,
                'serviceAllowance': this.dataForm.serviceAllowance || 0,
                'seniorityAllowance': this.dataForm.seniorityAllowance || 0,
                'totalSubsidy': this.dataForm.totalSubsidy,
                'specialTeacherSubsidy': this.dataForm.specialTeacherSubsidy || 0,
                'difficultySubsidy': this.dataForm.difficultySubsidy,
                'raiseWages': this.dataForm.raiseWages || 0,
                'retirementPayEightynine': this.dataForm.retirementPayEightynine || 0,
                'retirementPayNinetytwo': this.dataForm.retirementPayNinetytwo || 0,
                'retirementPayFirst': this.dataForm.retirementPayFirst || 0,
                'retirementPaySecond': this.dataForm.retirementPaySecond || 0,
                'retirementPayNinetyfive': this.dataForm.retirementPayNinetyfive || 0,
                'retirementPayNinetyseven': this.dataForm.retirementPayNinetyseven || 0,
                'retirementPayNinetysesec': this.dataForm.retirementPayNinetysesec || 0,
                'retirementPayNinetynine': this.dataForm.retirementPayNinetynine || 0,
                'retirementPayNinetynisec': this.dataForm.retirementPayNinetynisec || 0,
                'retirementPayZero': this.dataForm.retirementPayZero,
                'retirementPayOne': this.dataForm.retirementPayOne || 0,
                'retirementPayOnenew': this.dataForm.retirementPayOnenew || 0,
                'retirementPayOnsec': this.dataForm.retirementPayOnsec || 0,
                'retirementPayThird': this.dataForm.retirementPayThird || 0,
                'retirementPayThisec': this.dataForm.retirementPayThisec || 0,
                'retirementPayFive': this.dataForm.retirementPayFive || 0,
                'retirementPaySix': this.dataForm.retirementPaySix || 0,
                'retirementPayFourty': this.dataForm.retirementPayFourty || 0,
                'foodAllowanceSeventynine': this.dataForm.foodAllowanceSeventynine,
                'foodAllowanceEightyeight': this.dataForm.foodAllowanceEightyeight,
                'oilAllowanceNightyone': this.dataForm.oilAllowanceNightyone,
                'oilAllowanceNightytwo': this.dataForm.oilAllowanceNightytwo,
                'fuelLlowance': this.dataForm.fuelLlowance,
                'meatLlowance': this.dataForm.meatLlowance,
                'oilAllowanceNightythird': this.dataForm.oilAllowanceNightythird,
                'livingAllowanceEightyfive': this.dataForm.livingAllowanceEightyfive,
                'livingAllowanceEightyei': this.dataForm.livingAllowanceEightyei,
                'livingAllowanceNightytw': this.dataForm.livingAllowanceNightytw,
                'livingAllowanceNightyfo': this.dataForm.livingAllowanceNightyfo,
                'livingAllowanceNightyfive': this.dataForm.livingAllowanceNightyfive,
                'livingAllowanceNightysix': this.dataForm.livingAllowanceNightysix,
                'livingAllowanceNightysev': this.dataForm.livingAllowanceNightysev,
                'livingAllowanceNightyeig': this.dataForm.livingAllowanceNightyeig,
                'livingAllowanceNightynig': this.dataForm.livingAllowanceNightynig,
                'livingAllowanceZero': this.dataForm.livingAllowanceZero,
                'livingAllowanceOne': this.dataForm.livingAllowanceOne,
                'livingAllowanceTwo': this.dataForm.livingAllowanceTwo,
                'livingAllowanceThird': this.dataForm.livingAllowanceThird,
                'livingAllowanceFour': this.dataForm.livingAllowanceFour,
                'livingAllowanceSeven': this.dataForm.livingAllowanceSeven,
                'specialGoveAllowanc': this.dataForm.specialGoveAllowanc || 0,
                'paperMoney': this.dataForm.paperMoney,
                'carAllowance': this.dataForm.carAllowance || 0,
                'bathSubsidy': this.dataForm.bathSubsidy,
                'honorAllowance': this.dataForm.honorAllowance || 0,
                'otherIncome': this.dataForm.otherIncome,
                'jobSubsidy': this.dataForm.jobSubsidy,
                'ageAllowance': this.dataForm.ageAllowance,
                'holidaySubsidy': this.dataForm.holidaySubsidy,
                'retirementAllowanceOneo': this.dataForm.retirementAllowanceOneo,
                'growthMechanismSubsidy': this.dataForm.growthMechanismSubsidy || 0,
                'workingYearsSubsidy': this.dataForm.workingYearsSubsidy,
                'proportionalSubsidy': this.dataForm.proportionalSubsidy,
                'workUnit': this.dataForm.workUnit,
                'increaseProportion': this.dataForm.increaseProportion || 0,
                'renson': this.dataForm.renson,
                'registrationNo': this.dataForm.registrationNo,
                'nativePlace': this.dataForm.nativePlace,
                'registeredResidence': this.dataForm.registeredResidence,
                'zfgdTime': this.dataForm.zfgdTime,
                'resettlementPlanTime': this.dataForm.resettlementPlanTime,
                'medicalInsurance': this.dataForm.medicalInsurance,
                'allowanceRatio': this.dataForm.allowanceRatio,
                'enjoyAllowance': this.dataForm.enjoyAllowance,
                'specialAllowance': this.dataForm.specialAllowance,
                'treatmentStandard': this.dataForm.treatmentStandard,
                'postLevel': this.dataForm.postLevel,
                'salary': this.dataForm.salary,
                'isImprove': this.dataForm.isImprove,
                'personnelClassification': this.dataForm.personnelClassification,
                'pensionMedicalSubsidy': this.dataForm.pensionMedicalSubsidy || 0,
                'nursingFee': this.dataForm.nursingFee || 0,
                'isNursingFee': this.dataForm.isNursingFee,
                'heatingSubsidy': this.dataForm.heatingSubsidy || 0,
                'serviceSubsidy': this.dataForm.serviceSubsidy || 0,
                'retirementPaySixteen': this.dataForm.retirementPaySixteen || 0,
                'retirementPayEighteen': this.dataForm.retirementPayEighteen || 0,
                'retirementPayNineteen': this.dataForm.retirementPayNineteen || 0,
                'retirementPayTwentyseven': this.dataForm.retirementPayTwentyseven || 0,
                'retirementPayTwentyten': this.dataForm.retirementPayTwentyten || 0,
                'logoutDate': this.dataForm.logoutDate,
                'personType': this.dataForm.personType,
                'state': this.dataForm.state
              })
            }).then(({data}) => {
              if (data && data.code === 0) {
                this.$message({
                  message: '操作成功',
                  type: 'success',
                  duration: 1500,
                  onClose: () => {
                    this.visible = false
                    this.$emit('refreshDataList')
                  }
                })
              } else {
                this.$message.error(data.msg)
              }
            })
          }
        })
      },
      dataSex(type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (type == "SEX_GROUP") {
          this.sexList = data && data.code === 0 ? data.list : [];
        } else if (type == "EMPLOYEE") {
          this.workersClassificationList =
            data && data.code === 0 ? data.list : [];
        } else if (type == "AREA") {
          this.countyList = data && data.code === 0 ? data.list : [];
        } else if (type == "NATION") {
          this.nationList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZZMM") {
          this.politicalFaceList = data && data.code === 0 ? data.list : [];
        } else if (type == "TXQSF") {
          this.retirementStatusList = data && data.code === 0 ? data.list : [];
        } else if (type == "YBD") {
          this.originalTroopsList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJSJD") {
          this.handoverPeriodList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJFS") {
          this.handoverModeList = data && data.code === 0 ? data.list : [];
        } else if (type == "YJPC") {
          this.handoverBatchList = data && data.code === 0 ? data.list : [];
        } else if (type == "SFXSRYJT") {
          this.enjoyAllowanceList = data && data.code === 0 ? data.list : [];
        } else if (type == "SFXSZFTSJT") {
          this.specialAllowanceList = data && data.code === 0 ? data.list : [];
        } else if (type == "LXJSQK") {
          this.receptionList = data && data.code === 0 ? data.list : [];
        } else if (type == "BRZT") {
          this.myStatusList = data && data.code === 0 ? data.list : [];
        } else if (type == "DYBZ") {
          this.treatmentStandardList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZFQK") {
          this.housingSituationList = data && data.code === 0 ? data.list : [];
        } else if (type == "ZFCQ") {
          this.housingPropertyRightList =
            data && data.code === 0 ? data.list : [];
        } else if (type == "FWZLR") {
          this.leaseholderList = data && data.code === 0 ? data.list : [];
        } else if (type == "GZSFTG") {
          this.isImproveList = data && data.code === 0 ? data.list : [];
        } else if (type == "JJJTBL") {
          this.allowanceRatioList = data && data.code === 0 ? data.list : [];
        } else if (type == "GGGZDC") {
          this.wageGradeList = data && data.code === 0 ? data.list : [];
        } else if (type == "TGBLYY") {
          this.rensonList = data && data.code === 0 ? data.list : [];
        } else if (type == "DEATH") {
          this.deathList = data && data.code === 0 ? data.list : [];
        } else if (type == "RYFL") {
          this.personTypeList = data && data.code === 0 ? data.list : [];
        } else if (type == "JG") {
          this.nativePlaceList = data && data.code === 0 ? data.list : [];
        } else if (type == "YLZGFL") {
          this.registrationNoList = data && data.code === 0 ? data.list : [];
        } else if (type == "CJYB") {
          this.medicalInsuranceList = data && data.code === 0 ? data.list : [];
        } else if (type == "CQBNZL") {
          this.isNursingFeeList = data && data.code === 0 ? data.list : [];
        }
      });
    },
    inputFunc(idNo) {
      if (idNo != null && idNo != "") {
        let iden = idNo;
        let sex = null;
        let birth = null;
        //let myDate = new Date();
        //let month = myDate.getMonth() + 1;
        //let day = myDate.getDate();
        //let age = 0;

        if (iden.length == 18) {
          //age = myDate.getFullYear() - iden.substring(6, 10) - 1;
          sex = iden.substring(16, 17);
          birth =
            iden.substring(6, 10) +
            "-" +
            iden.substring(10, 12) +
            "-" +
            iden.substring(12, 14);
          //if (iden.substring(10, 12) < month || iden.substring(10, 12) == month && iden.substring(12, 14) <= day) age++;
        }
        if (iden.length == 15) {
          //age = myDate.getFullYear() - iden.substring(6, 8) - 1901;
          sex = iden.substring(13, 14);
          birth =
            "19" +
            iden.substring(6, 8) +
            "-" +
            iden.substring(8, 10) +
            "-" +
            iden.substring(10, 12);
          //if (iden.substring(8, 10) < month || iden.substring(8, 10) == month && iden.substring(10, 12) <= day) age++;
        }

        if (sex % 2 === 0) {
          sex = "女";
          let sf = this.dataForm.retirementStatus;
          if (sf == "技术人员" || sf == "职员") {
            let nian = parseInt(birth.substring(0, 4)) + 55;
            let month = parseInt(birth.substring(5, 7));
            this.dataForm.retirementTime =
              nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
            // if (nian < 2006) {
            //   this.postLevel = true;
            //   this.salaryClass = true;
            // } else if (nian == 2006 && month < 7) {
            //   this.postLevel = true;
            //   this.salaryClass = true;
            // } else {
            //   this.postLevel = false;
            //   this.salaryClass = false;
            // }
            //奖金津贴比例
            if (nian > 2006 || nian < 1993) {
              this.allowanceRatioClass = true;
            } else if (nian == 2006 && month > 6) {
              this.allowanceRatioClass = true;
            } else if (nian == 1993 && month < 10) {
              this.allowanceRatioClass = true;
            } else {
              this.allowanceRatioClass = false;
            }
            //85-06工改工资档次
            if (nian > 2006 || nian < 1985) {
              this.wageGradeClass = true;
            } else if (nian == 2006 && month > 6) {
              this.wageGradeClass = true;
            } else if (nian == 1985 && month < 7) {
              this.wageGradeClass = true;
            } else {
              this.wageGradeClass = false;
            }
          } else if (sf == "技术工人" || sf == "普工") {
            let nian = parseInt(birth.substring(0, 4)) + 50;
            let month = parseInt(birth.substring(5, 7));
            this.dataForm.retirementTime =
              nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
            // if (nian < 2006) {
            //   this.postLevel = true;
            //   this.salaryClass = true;
            // } else if (nian == 2006 && month < 7) {
            //   this.postLevel = true;
            //   this.salaryClass = true;
            // } else {
            //   this.postLevel = false;
            //   this.salaryClass = false;
            // }
            //奖金津贴比例
            if (nian > 2006 || nian < 1993) {
              this.allowanceRatioClass = true;
            } else if (nian == 2006 && month > 6) {
              this.allowanceRatioClass = true;
            } else if (nian == 1993 && month < 10) {
              this.allowanceRatioClass = true;
            } else {
              this.allowanceRatioClass = false;
            }
            //85-06工改工资档次
            if (nian > 2006 || nian < 1985) {
              this.wageGradeClass = true;
            } else if (nian == 2006 && month > 6) {
              this.wageGradeClass = true;
            } else if (nian == 1985 && month < 7) {
              this.wageGradeClass = true;
            } else {
              this.wageGradeClass = false;
            }
          }
        } else {
          sex = "男";
          let nian = parseInt(birth.substring(0, 4)) + 60;
          let month = parseInt(birth.substring(5, 7));
          this.dataForm.retirementTime =
            nian + "-" + birth.substring(5, 7) + "-" + birth.substring(8, 10);
          // if (nian < 2006) {
          //   this.postLevel = true;
          //   this.salaryClass = true;
          // } else if (nian == 2006 && month < 7) {
          //   this.postLevel = true;
          //   this.salaryClass = true;
          // } else {
          //   this.postLevel = false;
          //   this.salaryClass = false;
          // }
          //奖金津贴比例
          if (nian > 2006 || nian < 1993) {
            this.allowanceRatioClass = true;
          } else if (nian == 2006 && month > 6) {
            this.allowanceRatioClass = true;
          } else if (nian == 1993 && month < 10) {
            this.allowanceRatioClass = true;
          } else {
            this.allowanceRatioClass = false;
          }
          //85-06工改工资档次
          if (nian > 2006 || nian < 1985) {
            this.wageGradeClass = true;
          } else if (nian == 2006 && month > 6) {
            this.wageGradeClass = true;
          } else if (nian == 1985 && month < 7) {
            this.wageGradeClass = true;
          } else {
            this.wageGradeClass = false;
          }
        }
        this.dataForm.sex = sex;
        this.dataForm.birthDate = birth;
      }
    },

    //地区联动专用
    dataArea(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (type == "AREA") {
          this.countyList = data && data.code === 0 ? data.list : [];
        } else if (type == "TXQSF") {
          this.retirementStatusList = data && data.code === 0 ? data.list : [];
        }
        this.$http({
          url: this.$http.adornUrl("/sys/dict/secondary/" + val),
          method: "get",
          params: this.$http.adornParams(),
        }).then(({ data }) => {
          if (type == "AREA") {
            this.dataForm.street = null;
            this.streetList = data && data.code === 0 ? data.list : [];
          } else if (type == "TXQSF") {
            this.dataForm.duties = null;
            this.dutiesList = data && data.code === 0 ? data.list : [];
            let vals = "";
            if (val == "技术人员") {
              vals = val + 2;
            } else {
              vals = "其它";
            }
            this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + vals),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.personnelClassification = null;
              this.personnelClassificationList =
                data && data.code === 0 ? data.list : [];

              // let vaks = "";
              // vaks = val + 1;
              // this.$http({
              //   url: this.$http.adornUrl("/sys/dict/secondary/" + vaks),
              //   method: "get",
              //   params: this.$http.adornParams(),
              // }).then(({ data }) => {
              //   this.dataForm.postLevel = null;
              //   this.postLevelList = data && data.code === 0 ? data.list : [];
              // });
            });
          }
        });
      });
    },
    //联动街道
    dataStreet(street) {
      if (street == null || street == "") {
        this.$message.error("请先选择区县");
      } else {
        if (this.streetList == null || this.streetList.length == 0) {
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + street),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.streetList = data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    //联动退休时职务
    dataduty(duty) {
      if (duty == null || duty == "") {
        this.$message.error("请先选择退休前身份");
      } else {
        if (this.dutiesList == null || this.dutiesList.length == 0) {
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + duty),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.dutiesList = data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    //联动技术人员分类
    personnelClass(jsryfl) {
      if (jsryfl == null || jsryfl == "") {
        this.$message.error("请先选择退休前身份");
      } else {
        if (
          this.personnelClassificationList == null ||
          this.personnelClassificationList.length == 0
        ) {
          if (jsryfl == "技术人员") {
            jsryfl = jsryfl + 2;
          } else {
            jsryfl = "其它";
          }
          this.$http({
            url: this.$http.adornUrl("/sys/dict/secondary/" + jsryfl),
            method: "get",
            params: this.$http.adornParams(),
          }).then(({ data }) => {
            this.personnelClassificationList =
              data && data.code === 0 ? data.list : [];
          });
        }
      }
    },
    //计算工作年限
    inputWork(time) {
      let value = 0;
      if (time != null && time != "") {
        let retime = this.dataForm.retirementTime;
        if (retime != null && retime != "") {
          let month =
            parseInt(retime.substring(5, 7)) +
            1 -
            parseInt(time.substring(5, 7));
          if (month >= 0) {
            value =
              parseInt(retime.substring(0, 4)) - parseInt(time.substring(0, 4));
          } else {
            value =
              parseInt(retime.substring(0, 4)) -
              parseInt(time.substring(0, 4)) -
              1;
          }
          this.dataForm.workingYears = value;
        }
      }
    },
    //军队工作年限
    armyWork(army, work) {
      if (army != null && army != "") {
        let value = parseInt(work) - parseInt(army);
        if (value < 0) {
          this.$message.error("在军队工作年限应小于等于工作年限");
          this.dataForm.workingYearsArmy = work;
        }
      }
    },

    //工资是否提高10%与教龄
    dataImprove(val, type) {
      if (val == "是") {
        if (
          this.dataForm.teachingAge != null &&
          this.dataForm.teachingAge != ""
        ) {
          let value = parseInt(this.dataForm.teachingAge);
          if (value <= 0) {
            this.$message.error("教龄必须大于0");
            this.dataForm.isImprove = null;
          }
        } else {
          this.$message.error("教龄必须大于0");
          this.dataForm.isImprove = null;
        }
      }
    },

    retirement(reTime) {
      if (reTime != null && reTime != "") {
        let nian = parseInt(reTime.substring(0, 4));
        let month = parseInt(reTime.substring(5, 7));
        // //06工改和薪级
        // if (nian < 2006) {
        //   this.postLevel = true;
        //   this.salaryClass = true;
        // } else if (nian == 2006 && month < 7) {
        //   this.postLevel = true;
        //   this.salaryClass = true;
        // } else {
        //   this.postLevel = false;
        //   this.salaryClass = false;
        // }
        //奖金津贴比例
        if (nian > 2006 || nian < 1993) {
          this.allowanceRatioClass = true;
        } else if (nian == 2006 && month > 6) {
          this.allowanceRatioClass = true;
        } else if (nian == 1993 && month < 10) {
          this.allowanceRatioClass = true;
        } else {
          this.allowanceRatioClass = false;
        }
        //85-06工改工资档次
        if (nian > 2006 || nian < 1985) {
          this.wageGradeClass = true;
        } else if (nian == 2006 && month > 6) {
          this.wageGradeClass = true;
        } else if (nian == 1985 && month < 7) {
          this.wageGradeClass = true;
        } else {
          this.wageGradeClass = false;
        }
      }
    },

    //人员分类关联职工分类
    dataRyfl(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (val == "离休干部" ) {
          var types = "EMPLOYEE" 
          this.$http({
              url: this.$http.adornUrl("/sys/dict/select/" + types),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              var dataValue = [];
              for (var i=0 ; i<data.list.length;i++)
              {
                this.workersClassificationList = null;
                this.dataForm.workersClassification ="";
                this.dataForm.retirementFeeProportion ="";
                if(data.list[i].value == "离休")
                {
                    dataValue.push({
                         id:data.list[i].id,
                         name: data.list[i].name,
                         type: data.list[i].type,
                         code: data.list[i].code,
                        value: data.list[i].value
                    });
                }
                 
              }
              this.workersClassificationList = dataValue;
              this.dataForm.retirementFeeProportion = 100;
            })
        } else if(val == "建国前老工人") {
           var types = "EMPLOYEE" 
            this.$http({
                url: this.$http.adornUrl("/sys/dict/select/" + types),
                method: "get",
                params: this.$http.adornParams(),
              }).then(({ data }) => {
                var dataValue = [];
                for (var i=0 ; i<data.list.length;i++)
                {
                  this.workersClassificationList = null;
                  this.dataForm.workersClassification ="";
                  this.dataForm.retirementFeeProportion ="";
                  if(data.list[i].value == "退休")
                  {
                      dataValue.push({
                          id:data.list[i].id,
                          name: data.list[i].name,
                          type: data.list[i].type,
                          code: data.list[i].code,
                          value: data.list[i].value
                      });
                  }
                  
                }
                this.workersClassificationList = dataValue;
                this.dataForm.retirementFeeProportion = 100;
              })
        }else
        {
           var types = "EMPLOYEE" 
            this.$http({
                url: this.$http.adornUrl("/sys/dict/select/" + types),
                method: "get",
                params: this.$http.adornParams(),
              }).then(({ data }) => {
                var dataValue = [];
                for (var i=0 ; i<data.list.length;i++)
                {
                  this.workersClassificationList = null;
                  this.dataForm.workersClassification ="";
                  this.dataForm.retirementFeeProportion ="";
                  if(data.list[i].value == "退休" || data.list[i].value == "退职")
                  {
                      dataValue.push({
                          id:data.list[i].id,
                          name: data.list[i].name,
                          type: data.list[i].type,
                          code: data.list[i].code,
                          value: data.list[i].value
                      });
                  }
                  
                }
                this.workersClassificationList = dataValue;
              })
        }
      });
    },
    //本人状态关联是否死亡
    dataBrzt(val, type) {
      this.$http({
        url: this.$http.adornUrl("/sys/dict/select/" + type),
        method: "get",
        params: this.$http.adornParams(),
      }).then(({ data }) => {
        if (val == "在世" || val == "退回") {
          val = "在世";
          this.deathTimeDisabled = true;
          this.logoutDateDisabled = true;
          
          this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + val),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.death = null;
              this.dataForm.logoutDate = null;
              this.deathList = data && data.code === 0 ? data.list : [];
            })
        } else {
          this.deathTimeDisabled = false;
          this.logoutDateDisabled = false;
          //获取当前时间
          var _this = this;
          let yy = new Date().getFullYear();
          let mm = new Date().getMonth()+1;
          let dd = new Date().getDate();
          _this.gettime = yy+'-'+mm+'-'+dd;
          this.dataForm.logoutDate = _this.gettime;

          this.$http({
              url: this.$http.adornUrl("/sys/dict/secondary/" + val),
              method: "get",
              params: this.$http.adornParams(),
            }).then(({ data }) => {
              this.dataForm.death = null;
              this.deathList = data && data.code === 0 ? data.list : [];
            })
        }
      });
    },
     downloadDeath() {
    //获取上一年度全国城镇居民人均可支配收入
        var rjkzpsrbz = '';
        var deDate = this.dataForm.deathTime;
        var deNian = parseInt(deDate.substring(0, 4));
        this.$http({
        url: this.$http.adornUrl('/jxxm/incomestandard/list'),
        method: 'get',
        params: this.$http.adornParams({
          'page': this.pageIndex,
          'limit': this.pageSize,
          'nd': deNian
          })
        }).then(({data}) => {
          if (data && data.code === 0) {
            this.dataList = data.page.list
            console.log(this.dataList)
            if(this.dataList.length == 0)
            {
              rjkzpsrbz = '';
            }else
            {
              rjkzpsrbz = this.dataList[0].rjkzpsrbz;
            }

            //四十个月基本离休费合计
            var ssgjblxf = 0;
            var resultA = this.resultA;
            var resultB = this.resultB;
            ssgjblxf = parseFloat(resultA)+parseFloat(resultB);
            ssgjblxf = parseFloat(ssgjblxf)*40;

            //丧葬费一次性抚恤金总计
            var szfzj = 0;
            szfzj = parseFloat(ssgjblxf) + parseFloat(rjkzpsrbz)*2 + 5000


            if (this.dataForm.id) {
                var data = {
                    //title:'（1985年工改前退休人员xxx）',
                    areaCode: this.dataForm.areaCode,
                    personalCode: this.dataForm.personalCode,
                    name: this.dataForm.name,
                    sex: this.dataForm.sex,
                    nation: this.dataForm.nation,
                    politicalFace: this.dataForm.politicalFace,
                    idNo: this.dataForm.idNo,
                    birthDate: this.dataForm.birthDate,
                    workTime: this.dataForm.workTime,
                    txsj: this.dataForm.retirementTime,
                    retirementStatus: this.dataForm.retirementStatus,
                    duties: this.dataForm.duties,
                    county: this.dataForm.county,
                    street: this.dataForm.street,
                    ybd: this.dataForm.originalTroops,
                    yjsj: this.dataForm.handoverTime,
                    handoverMode: this.dataForm.handoverMode,
                    handoverBatch: this.dataForm.handoverBatch,
                    workersClassification: this.dataForm.workersClassification,
                    myStatus: this.dataForm.myStatus,
                    death: this.dataForm.death,
                    deathTime: this.dataForm.deathTime,
                    reception: this.dataForm.reception,
                    housingSituation: this.dataForm.housingSituation,
                    housingPropertyRight: this.dataForm.housingPropertyRight,
                    leaseholder: this.dataForm.leaseholder,
                    housingArea: this.dataForm.housingArea,
                    increasePension: this.dataForm.increasePension,
                    totalMonthlyPension: this.dataForm.totalMonthlyPension,
                    address: this.dataForm.address,
                    phone: this.dataForm.phone,
                    remarks: this.dataForm.remarks,
                    jl: this.dataForm.teachingAge,
                    workYears: this.dataForm.workingYears,
                    jdgznx: this.dataForm.workingYearsArmy,
                    wageLevel: this.dataForm.wageLevel,
                    wageGrade: this.dataForm.wageGrade,
                    wageScale: this.dataForm.wageScale,
                    retirementFeeProportion: this.dataForm.retirementFeeProportion,
                    gljt: this.dataForm.senioritySalary,
                    jcgz: this.dataForm.basicSalary,
                    levelSalary: this.dataForm.levelSalary,
                    zwgwgz: this.dataForm.gradeSalary,
                    salaryScale: this.dataForm.salaryScale,
                    jjjt: this.dataForm.bonusAllowance,
                    jdfwjt: this.dataForm.serviceAllowance,
                    jhljt: this.dataForm.seniorityAllowance,
                    totalSubsidy: this.dataForm.totalSubsidy,
                    tjjsbt: this.dataForm.specialTeacherSubsidy,
                    difficultySubsidy: this.dataForm.difficultySubsidy,
                    gztg: this.dataForm.raiseWages,
                    lxfA: this.dataForm.retirementPayEightynine,
                    lxfB: this.dataForm.retirementPayNinetytwo,
                    lxfC: this.dataForm.retirementPayFirst,
                    lxfD: this.dataForm.retirementPaySecond,
                    lxfE: this.dataForm.retirementPayNinetyfive,
                    lxfF: this.dataForm.retirementPayNinetyseven,
                    lxfG: this.dataForm.retirementPayNinetysesec,
                    lxfH: this.dataForm.retirementPayNinetynine,
                    lxfK: this.dataForm.retirementPayNinetynisec,
                    retirementPayZero: this.dataForm.retirementPayZero,
                    lxfL: this.dataForm.retirementPayOne,
                    lxfM: this.dataForm.retirementPayOnenew,
                    lxfN: this.dataForm.retirementPayOnsec,
                    lxfO: this.dataForm.retirementPayThird,
                    lxfP: this.dataForm.retirementPayThisec,
                    lxfQ: this.dataForm.retirementPayFive,
                    lxfR: this.dataForm.retirementPaySix,
                    lxfI: this.dataForm.retirementPayFourty,
                    foodAllowanceSeventynine: this.dataForm.foodAllowanceSeventynine,
                    foodAllowanceEightyeight: this.dataForm.foodAllowanceEightyeight,
                    oilAllowanceNightyone: this.dataForm.oilAllowanceNightyone,
                    oilAllowanceNightytwo: this.dataForm.oilAllowanceNightytwo,
                    fuelLlowance: this.dataForm.fuelLlowance,
                    meatLlowance: this.dataForm.meatLlowance,
                    oilAllowanceNightythird: this.dataForm.oilAllowanceNightythird,
                    livingAllowanceEightyfive: this.dataForm.livingAllowanceEightyfive,
                    livingAllowanceEightyei: this.dataForm.livingAllowanceEightyei,
                    livingAllowanceNightytw: this.dataForm.livingAllowanceNightytw,
                    livingAllowanceNightyfo: this.dataForm.livingAllowanceNightyfo,
                    livingAllowanceNightyfive: this.dataForm.livingAllowanceNightyfive,
                    livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix,
                    livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev,
                    livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig,
                    livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig,
                    livingAllowanceZero: this.dataForm.livingAllowanceZero,
                    livingAllowanceOne: this.dataForm.livingAllowanceOne,
                    livingAllowanceTwo: this.dataForm.livingAllowanceTwo,
                    livingAllowanceThird: this.dataForm.livingAllowanceThird,
                    livingAllowanceFour: this.dataForm.livingAllowanceFour,
                    livingAllowanceSeven: this.dataForm.livingAllowanceSeven,
                    specialGoveAllowanc: this.dataForm.specialGoveAllowanc,
                    paperMoney: this.dataForm.paperMoney,
                    carAllowance: this.dataForm.carAllowance,
                    bathSubsidy: this.dataForm.bathSubsidy,
                    honorAllowance: this.dataForm.honorAllowance,
                    otherIncome: this.dataForm.otherIncome,
                    jobSubsidy: this.dataForm.jobSubsidy,
                    ageAllowance: this.dataForm.ageAllowance,
                    holidaySubsidy: this.dataForm.holidaySubsidy,
                    retirementAllowanceOneo: this.dataForm.retirementAllowanceOneo,
                    growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
                    workingYearsSubsidy: this.dataForm.workingYearsSubsidy,
                    proportionalSubsidy: this.dataForm.proportionalSubsidy,
                    workUnit: this.dataForm.workUnit,
                    increaseProportion: this.dataForm.increaseProportion,
                    renson: this.dataForm.renson,
                    registrationNo: this.dataForm.registrationNo,
                    nativePlace: this.dataForm.nativePlace,
                    registeredResidence: this.dataForm.registeredResidence,
                    zfgdTime: this.dataForm.zfgdTime,
                    resettlementPlanTime: this.dataForm.resettlementPlanTime,
                    medicalInsurance: this.dataForm.medicalInsurance,
                    allowanceRatio: this.dataForm.allowanceRatio,
                    enjoyAllowance: this.dataForm.enjoyAllowance,
                    specialAllowance: this.dataForm.specialAllowance,
                    treatmentStandard: this.dataForm.treatmentStandard,
                    postLevel: this.dataForm.postLevel,
                    salary: this.dataForm.salary,
                    isImprove: this.dataForm.isImprove,
                    personnelClassification: this.dataForm.personnelClassification,
                    pensionMedicalSubsidy: this.dataForm.pensionMedicalSubsidy,
                    hlfje: this.dataForm.nursingFee,
                    isNursingFee: this.dataForm.isNursingFee,
                    heatingSubsidy: this.dataForm.heatingSubsidy,
                    serviceSubsidy: this.dataForm.serviceSubsidy,
                    lxfS: this.dataForm.retirementPaySixteen,
                    lxfJ: this.dataForm.retirementPayEighteen,
                    retirementPayNineteen: this.dataForm.retirementPayNineteen,
                    retirementPayTwentyseven: this.dataForm.retirementPayTwentyseven,
                    lxfT: this.dataForm.retirementPayTwentyten,
                    logoutDate: this.dataForm.logoutDate,
                    personType: this.dataForm.personType,
                    state: this.dataForm.state,
                    jblxfhj:this.resultA,
                    lczjtxfhjsl:this.resultB,
                    kzpsrbz:rjkzpsrbz,
                    ssgjblxf:ssgjblxf,
                    szfzj:szfzj,
                    hlfsfsj:''
                  }


                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxgbfxj.docx", data, `离休人员抚恤金.docx`);
              
              }

            
          }
        })
        
		  },
      downloadhlf() {
         var azqjd = '';
         azqjd = this.dataForm.county + this.dataForm.street;
         if (this.dataForm.id) {
            var data = {
                //title:'（1985年工改前退休人员xxx）',
                areaCode: this.dataForm.areaCode,
                personalCode: this.dataForm.personalCode,
                name: this.dataForm.name,
                sex: this.dataForm.sex,
                nation: this.dataForm.nation,
                politicalFace: this.dataForm.politicalFace,
                idNo: this.dataForm.idNo,
                birthDate: this.dataForm.birthDate,
                workTime: this.dataForm.workTime,
                txsj: this.dataForm.retirementTime,
                retirementStatus: this.dataForm.retirementStatus,
                duties: this.dataForm.duties,
                county: this.dataForm.county,
                street: this.dataForm.street,
                ybd: this.dataForm.originalTroops,
                yjsj: this.dataForm.handoverTime,
                handoverMode: this.dataForm.handoverMode,
                handoverBatch: this.dataForm.handoverBatch,
                workersClassification: this.dataForm.workersClassification,
                myStatus: this.dataForm.myStatus,
                death: this.dataForm.death,
                deathTime: this.dataForm.deathTime,
                reception: this.dataForm.reception,
                housingSituation: this.dataForm.housingSituation,
                housingPropertyRight: this.dataForm.housingPropertyRight,
                leaseholder: this.dataForm.leaseholder,
                housingArea: this.dataForm.housingArea,
                increasePension: this.dataForm.increasePension,
                totalMonthlyPension: this.dataForm.totalMonthlyPension,
                address: this.dataForm.address,
                phone: this.dataForm.phone,
                remarks: this.dataForm.remarks,
                jl: this.dataForm.teachingAge,
                workYears: this.dataForm.workingYears,
                jdgznx: this.dataForm.workingYearsArmy,
                wageLevel: this.dataForm.wageLevel,
                wageGrade: this.dataForm.wageGrade,
                wageScale: this.dataForm.wageScale,
                retirementFeeProportion: this.dataForm.retirementFeeProportion,
                gljt: this.dataForm.senioritySalary,
                jcgz: this.dataForm.basicSalary,
                levelSalary: this.dataForm.levelSalary,
                zwgwgz: this.dataForm.gradeSalary,
                salaryScale: this.dataForm.salaryScale,
                jjjt: this.dataForm.bonusAllowance,
                jdfwjt: this.dataForm.serviceAllowance,
                jhljt: this.dataForm.seniorityAllowance,
                totalSubsidy: this.dataForm.totalSubsidy,
                tjjsbt: this.dataForm.specialTeacherSubsidy,
                difficultySubsidy: this.dataForm.difficultySubsidy,
                gztg: this.dataForm.raiseWages,
                lxfA: this.dataForm.retirementPayEightynine,
                lxfB: this.dataForm.retirementPayNinetytwo,
                lxfC: this.dataForm.retirementPayFirst,
                lxfD: this.dataForm.retirementPaySecond,
                lxfE: this.dataForm.retirementPayNinetyfive,
                lxfF: this.dataForm.retirementPayNinetyseven,
                lxfG: this.dataForm.retirementPayNinetysesec,
                lxfH: this.dataForm.retirementPayNinetynine,
                lxfK: this.dataForm.retirementPayNinetynisec,
                retirementPayZero: this.dataForm.retirementPayZero,
                lxfL: this.dataForm.retirementPayOne,
                lxfM: this.dataForm.retirementPayOnenew,
                lxfN: this.dataForm.retirementPayOnsec,
                lxfO: this.dataForm.retirementPayThird,
                lxfP: this.dataForm.retirementPayThisec,
                lxfQ: this.dataForm.retirementPayFive,
                lxfR: this.dataForm.retirementPaySix,
                lxfI: this.dataForm.retirementPayFourty,
                foodAllowanceSeventynine: this.dataForm.foodAllowanceSeventynine,
                foodAllowanceEightyeight: this.dataForm.foodAllowanceEightyeight,
                oilAllowanceNightyone: this.dataForm.oilAllowanceNightyone,
                oilAllowanceNightytwo: this.dataForm.oilAllowanceNightytwo,
                fuelLlowance: this.dataForm.fuelLlowance,
                meatLlowance: this.dataForm.meatLlowance,
                oilAllowanceNightythird: this.dataForm.oilAllowanceNightythird,
                livingAllowanceEightyfive: this.dataForm.livingAllowanceEightyfive,
                livingAllowanceEightyei: this.dataForm.livingAllowanceEightyei,
                livingAllowanceNightytw: this.dataForm.livingAllowanceNightytw,
                livingAllowanceNightyfo: this.dataForm.livingAllowanceNightyfo,
                livingAllowanceNightyfive: this.dataForm.livingAllowanceNightyfive,
                livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix,
                livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev,
                livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig,
                livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig,
                livingAllowanceZero: this.dataForm.livingAllowanceZero,
                livingAllowanceOne: this.dataForm.livingAllowanceOne,
                livingAllowanceTwo: this.dataForm.livingAllowanceTwo,
                livingAllowanceThird: this.dataForm.livingAllowanceThird,
                livingAllowanceFour: this.dataForm.livingAllowanceFour,
                livingAllowanceSeven: this.dataForm.livingAllowanceSeven,
                specialGoveAllowanc: this.dataForm.specialGoveAllowanc,
                paperMoney: this.dataForm.paperMoney,
                carAllowance: this.dataForm.carAllowance,
                bathSubsidy: this.dataForm.bathSubsidy,
                honorAllowance: this.dataForm.honorAllowance,
                otherIncome: this.dataForm.otherIncome,
                jobSubsidy: this.dataForm.jobSubsidy,
                ageAllowance: this.dataForm.ageAllowance,
                holidaySubsidy: this.dataForm.holidaySubsidy,
                retirementAllowanceOneo: this.dataForm.retirementAllowanceOneo,
                growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
                workingYearsSubsidy: this.dataForm.workingYearsSubsidy,
                proportionalSubsidy: this.dataForm.proportionalSubsidy,
                workUnit: this.dataForm.workUnit,
                increaseProportion: this.dataForm.increaseProportion,
                renson: this.dataForm.renson,
                registrationNo: this.dataForm.registrationNo,
                nativePlace: this.dataForm.nativePlace,
                registeredResidence: this.dataForm.registeredResidence,
                zfgdTime: this.dataForm.zfgdTime,
                resettlementPlanTime: this.dataForm.resettlementPlanTime,
                medicalInsurance: this.dataForm.medicalInsurance,
                allowanceRatio: this.dataForm.allowanceRatio,
                enjoyAllowance: this.dataForm.enjoyAllowance,
                specialAllowance: this.dataForm.specialAllowance,
                treatmentStandard: this.dataForm.treatmentStandard,
                postLevel: this.dataForm.postLevel,
                salary: this.dataForm.salary,
                isImprove: this.dataForm.isImprove,
                personnelClassification: this.dataForm.personnelClassification,
                pensionMedicalSubsidy: this.dataForm.pensionMedicalSubsidy,
                hlfje: this.dataForm.nursingFee,
                isNursingFee: this.dataForm.isNursingFee,
                heatingSubsidy: this.dataForm.heatingSubsidy,
                serviceSubsidy: this.dataForm.serviceSubsidy,
                lxfS: this.dataForm.retirementPaySixteen,
                lxfJ: this.dataForm.retirementPayEighteen,
                retirementPayNineteen: this.dataForm.retirementPayNineteen,
                retirementPayTwentyseven: this.dataForm.retirementPayTwentyseven,
                lxfT: this.dataForm.retirementPayTwentyten,
                logoutDate: this.dataForm.logoutDate,
                personType: this.dataForm.personType,
                state: this.dataForm.state,
                jblxfhj:this.resultA,
                lczjtxfhjsl:this.resultB,
                hlfsfsj:'',
                azqjd:azqjd
              }
              exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/hif.docx", data, `离休人员护理费.docx`);
          
          }
        
		  },
      download() {
         var lxbthj = 0;
         var A = this.dataForm.growthMechanismSubsidy;
         var B = this.dataForm.retirementPayNineteen;
         var C = this.dataForm.retirementPayTwentyseven;
         lxbthj = parseFloat(A)+parseFloat(B)+parseFloat(C)
        
         if (this.dataForm.id) {
            var data = {
                //title:'（1985年工改前退休人员xxx）',
                areaCode: this.dataForm.areaCode,
                personalCode: this.dataForm.personalCode,
                name: this.dataForm.name,
                sex: this.dataForm.sex,
                nation: this.dataForm.nation,
                politicalFace: this.dataForm.politicalFace,
                idNo: this.dataForm.idNo,
                birthDate: this.dataForm.birthDate,
                workTime: this.dataForm.workTime,
                txsj: this.dataForm.retirementTime,
                retirementStatus: this.dataForm.retirementStatus,
                duties: this.dataForm.duties,
                county: this.dataForm.county,
                street: this.dataForm.street,
                ybd: this.dataForm.originalTroops,
                yjsj: this.dataForm.handoverTime,
                handoverMode: this.dataForm.handoverMode,
                handoverBatch: this.dataForm.handoverBatch,
                workersClassification: this.dataForm.workersClassification,
                myStatus: this.dataForm.myStatus,
                death: this.dataForm.death,
                deathTime: this.dataForm.deathTime,
                reception: this.dataForm.reception,
                housingSituation: this.dataForm.housingSituation,
                housingPropertyRight: this.dataForm.housingPropertyRight,
                leaseholder: this.dataForm.leaseholder,
                housingArea: this.dataForm.housingArea,
                increasePension: this.dataForm.increasePension,
                totalMonthlyPension: this.dataForm.totalMonthlyPension,
                address: this.dataForm.address,
                phone: this.dataForm.phone,
                remarks: this.dataForm.remarks,
                jl: this.dataForm.teachingAge,
                workYears: this.dataForm.workingYears,
                jdgznx: this.dataForm.workingYearsArmy,
                wageLevel: this.dataForm.wageLevel,
                wageGrade: this.dataForm.wageGrade,
                wageScale: this.dataForm.wageScale,
                jbtxfjfbl: this.dataForm.retirementFeeProportion,
                gljt: this.dataForm.senioritySalary,
                jcgz: this.dataForm.basicSalary,
                jbgz: this.dataForm.levelSalary,
                zwgwgz: this.dataForm.gradeSalary,
                salaryScale: this.dataForm.salaryScale,
                jjjt: this.dataForm.bonusAllowance,
                jdfwjt: this.dataForm.serviceAllowance,
                jhljt: this.dataForm.seniorityAllowance,
                totalSubsidy: this.dataForm.totalSubsidy,
                tjjsbt: this.dataForm.specialTeacherSubsidy,
                difficultySubsidy: this.dataForm.difficultySubsidy,
                gztg: this.dataForm.raiseWages,
                lxfA: this.dataForm.retirementPayEightynine,
                lxfB: this.dataForm.retirementPayNinetytwo,
                lxfC: this.dataForm.retirementPayFirst,
                lxfD: this.dataForm.retirementPaySecond,
                lxfE: this.dataForm.retirementPayNinetyfive,
                lxfF: this.dataForm.retirementPayNinetyseven,
                lxfG: this.dataForm.retirementPayNinetysesec,
                lxfH: this.dataForm.retirementPayNinetynine,
                lxfK: this.dataForm.retirementPayNinetynisec,
                retirementPayZero: this.dataForm.retirementPayZero,
                lxfL: this.dataForm.retirementPayOne,
                lxfM: this.dataForm.retirementPayOnenew,
                lxfN: this.dataForm.retirementPayOnsec,
                lxfO: this.dataForm.retirementPayThird,
                lxfP: this.dataForm.retirementPayThisec,
                lxfQ: this.dataForm.retirementPayFive,
                lxfR: this.dataForm.retirementPaySix,
                lxfI: this.dataForm.retirementPayFourty,
                foodAllowanceSeventynine: this.dataForm.foodAllowanceSeventynine,
                foodAllowanceEightyeight: this.dataForm.foodAllowanceEightyeight,
                oilAllowanceNightyone: this.dataForm.oilAllowanceNightyone,
                oilAllowanceNightytwo: this.dataForm.oilAllowanceNightytwo,
                fuelLlowance: this.dataForm.fuelLlowance,
                meatLlowance: this.dataForm.meatLlowance,
                oilAllowanceNightythird: this.dataForm.oilAllowanceNightythird,
                livingAllowanceEightyfive: this.dataForm.livingAllowanceEightyfive,
                livingAllowanceEightyei: this.dataForm.livingAllowanceEightyei,
                livingAllowanceNightytw: this.dataForm.livingAllowanceNightytw,
                livingAllowanceNightyfo: this.dataForm.livingAllowanceNightyfo,
                livingAllowanceNightyfive: this.dataForm.livingAllowanceNightyfive,
                livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix,
                livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev,
                livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig,
                livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig,
                livingAllowanceZero: this.dataForm.livingAllowanceZero,
                livingAllowanceOne: this.dataForm.livingAllowanceOne,
                livingAllowanceTwo: this.dataForm.livingAllowanceTwo,
                livingAllowanceThird: this.dataForm.livingAllowanceThird,
                livingAllowanceFour: this.dataForm.livingAllowanceFour,
                livingAllowanceSeven: this.dataForm.livingAllowanceSeven,
                zftsjt: this.dataForm.specialGoveAllowanc,
                paperMoney: this.dataForm.paperMoney,
                ycbgbt: this.dataForm.carAllowance,
                bathSubsidy: this.dataForm.bathSubsidy,
                ryjt: this.dataForm.honorAllowance,
                otherIncome: this.dataForm.otherIncome,
                jobSubsidy: this.dataForm.jobSubsidy,
                ageAllowance: this.dataForm.ageAllowance,
                holidaySubsidy: this.dataForm.holidaySubsidy,
                retirementAllowanceOneo: this.dataForm.retirementAllowanceOneo,
                growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
                workingYearsSubsidy: this.dataForm.workingYearsSubsidy,
                proportionalSubsidy: this.dataForm.proportionalSubsidy,
                workUnit: this.dataForm.workUnit,
                increaseProportion: this.dataForm.increaseProportion,
                renson: this.dataForm.renson,
                registrationNo: this.dataForm.registrationNo,
                nativePlace: this.dataForm.nativePlace,
                registeredResidence: this.dataForm.registeredResidence,
                zfgdTime: this.dataForm.zfgdTime,
                resettlementPlanTime: this.dataForm.resettlementPlanTime,
                medicalInsurance: this.dataForm.medicalInsurance,
                allowanceRatio: this.dataForm.allowanceRatio,
                enjoyAllowance: this.dataForm.enjoyAllowance,
                specialAllowance: this.dataForm.specialAllowance,
                treatmentStandard: this.dataForm.treatmentStandard,
                postLevel: this.dataForm.postLevel,
                salary: this.dataForm.salary,
                isImprove: this.dataForm.isImprove,
                personnelClassification: this.dataForm.personnelClassification,
                ylylbt: this.dataForm.pensionMedicalSubsidy,
                hlfje: this.dataForm.nursingFee,
                isNursingFee: this.dataForm.isNursingFee,
                heatingSubsidy: this.dataForm.heatingSubsidy,
                wyfwbt: this.dataForm.serviceSubsidy,
                lxfS: this.dataForm.retirementPaySixteen,
                lxfJ: this.dataForm.retirementPayEighteen,
                retirementPayNineteen: this.dataForm.retirementPayNineteen,
                retirementPayTwentyseven: this.dataForm.retirementPayTwentyseven,
                lxfT: this.dataForm.retirementPayTwentyten,
                logoutDate: this.dataForm.logoutDate,
                personType: this.dataForm.personType,
                state: this.dataForm.state,
                jblxfhj:this.resultA,
                lczjtxfhjsl:this.resultB,
                jtbthj:this.resultG,
                lxbthj:lxbthj,
                lxfhj:this.resultH
              }


              var reVal = this.dataForm.retirementTime;
              var txqsf = this.dataForm.retirementStatus;
              var dybz = this.dataForm.treatmentStandard;

              let nian = parseInt(reVal.substring(0, 4));
              let month = parseInt(reVal.substring(5, 7));

              if(nian < 1985)
              {
                      exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf1.docx", data, `离休费.docx`);
                      
              }else if(nian >= 1985 && nian <1993)
              {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf2.docx", data, `离休费.docx`);
              }else if(nian == 1993 && month <10)
              {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf2.docx", data, `离休费.docx`);
              }else if(nian == 1993 && month >=10)
              {
                  if(txqsf == "职员" && dybz == '机关职员标准')
                  {
                      exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf3.docx", data, `离休费.docx`);
                  }else
                  {
                        exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
                  }
                  
              }else if(nian >1993 && nian <2003)
              {    if(txqsf == "职员" && dybz == '机关职员标准')
                  {
                      exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf3.docx", data, `离休费.docx`);
                  }else
                  {
                        exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
                  }

              }else if(nian == 2003 && month <7)
              {
                  if(txqsf == "职员" && dybz == '机关职员标准')
                  {
                      exportDocx(window.SITE_CONFIG.cdnUrl +  "/static/assets/lxf3.docx", data, `离休费.docx`);
                  }else
                  {
                        exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
                  }
              }else if(nian == 2003 && month >=7)
              {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
              }else if(nian > 2003 && nian < 2006)
              {
                    exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
              }
              else if(nian == 2006 && month <7)
              {
                  exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/lxf4.docx", data, `离休费.docx`);
              }
          }
        
		  },
      lxf(){
        let id = this.dataForm.id;

        var reVal = this.dataForm.retirementTime;
        var txqsf = this.dataForm.retirementStatus;
        var dybz = this.dataForm.treatmentStandard;

        let nian = parseInt(reVal.substring(0, 4));
        let month = parseInt(reVal.substring(5, 7));

        if(nian < 1985)
        {
          this.addOrUpdateLXF1 = true
          this.$nextTick(() => {
            this.$refs.LXF1.test(id)
          })
                
        }else if(nian >= 1985 && nian <1993)
        {
          this.addOrUpdateLXF2 = true
          this.$nextTick(() => {
            this.$refs.LXF2.test(id)
          })
        }else if(nian == 1993 && month <10)
        {
          this.addOrUpdateLXF2 = true
          this.$nextTick(() => {
            this.$refs.LXF2.test(id)
          })
        }else if(nian == 1993 && month >=10)
        {
            if(txqsf == "职员" && dybz == '机关职员标准')
            {
              this.addOrUpdateLXF3 = true
              this.$nextTick(() => {
                this.$refs.LXF3.test(id)
              })
            }else
            {
              this.addOrUpdateLXF4 = true
              this.$nextTick(() => {
                this.$refs.LXF4.test(id)
              })
            }
            
        }else if(nian >1993 && nian <2003)
        {    if(txqsf == "职员" && dybz == '机关职员标准')
            {
                this.addOrUpdateLXF3 = true
                this.$nextTick(() => {
                  this.$refs.LXF3.test(id)
                })
            }else
            {
              this.addOrUpdateLXF4 = true
              this.$nextTick(() => {
                this.$refs.LXF4.test(id)
              })
            }

        }else if(nian == 2003 && month <7)
        {
            if(txqsf == "职员" && dybz == '机关职员标准')
            {
                this.addOrUpdateLXF3 = true
                this.$nextTick(() => {
                  this.$refs.LXF3.test(id)
                })
            }else
            {
              this.addOrUpdateLXF4 = true
              this.$nextTick(() => {
                this.$refs.LXF4.test(id)
              })
            }
        }else if(nian == 2003 && month >=7)
        {
            this.addOrUpdateLXF4 = true
            this.$nextTick(() => {
              this.$refs.LXF4.test(id)
            })
        }else if(nian > 2003 && nian < 2006)
        {
            this.addOrUpdateLXF4 = true
            this.$nextTick(() => {
              this.$refs.LXF4.test(id)
            })
        }
        else if(nian == 2006 && month <7)
        {
            this.addOrUpdateLXF4 = true
            this.$nextTick(() => {
              this.$refs.LXF4.test(id)
            })
        }
      },
      fxj(){
        let id = this.dataForm.id;
        this.addOrUpdateLXFXJ = true
        this.$nextTick(() => {
          this.$refs.LXFXJ.test(id)
        })

      },
      shbt(){
        let id = this.dataForm.id;
        this.addOrUpdateLXSHBT = true
        this.$nextTick(() => {
          this.$refs.LXSHBT.test(id)
        })
      },
      hlf(){
        let id = this.dataForm.id;
        this.addOrUpdateLXHLF = true
        this.$nextTick(() => {
          this.$refs.LXHLF.test(id)
        })
      },
      downloadshbt() {

        var reVal = this.dataForm.workTime;
        let nian = parseInt(reVal.substring(0, 4));
        let month = parseInt(reVal.substring(5, 7));
        let day = parseInt(reVal.substring(8, 10));

        var shbthj = 0;
        var resultA = this.resultA;
        var resultB = this.resultB;
        shbthj = parseFloat(resultA) + parseFloat(resultB);

        if(nian == 1937 && month > 7 )
        {
          shbthj = parseFloat(shbthj)*3.5
        }else if(nian == 1937 && month == 7 && day >= 7)
        {
          shbthj = parseFloat(shbthj)*3.5
        }else if(nian > 1937 && nian <1943)
        {
          shbthj = parseFloat(shbthj)*3.5
        }else if(nian >= 1943 && nian <1945)
        {
          shbthj = parseFloat(shbthj)*3
        }else if(nian == 1945 && month < 9)
        {
          shbthj = parseFloat(shbthj)*3
        }else if(nian == 1945 && month == 9 && day <= 2)
        {
          shbthj = parseFloat(shbthj)*3
        }else if(nian == 1945 && month == 9 && day >=3 )
        {
          shbthj = parseFloat(shbthj)*2
        }else if(nian == 1945 && month > 9)
        {
          shbthj = parseFloat(shbthj)*2
        }else if(nian > 1945 && nian < 1949)
        {
          shbthj = parseFloat(shbthj)*2
        }else if(nian == 1949 && month < 10)
        {
          shbthj = parseFloat(shbthj)*2
        }
       
        if (this.dataForm.id) {
            var data = {
                //title:'（1985年工改前退休人员xxx）',
                areaCode: this.dataForm.areaCode,
                personalCode: this.dataForm.personalCode,
                name: this.dataForm.name,
                sex: this.dataForm.sex,
                nation: this.dataForm.nation,
                politicalFace: this.dataForm.politicalFace,
                idNo: this.dataForm.idNo,
                birthDate: this.dataForm.birthDate,
                workTime: this.dataForm.workTime,
                txsj: this.dataForm.retirementTime,
                retirementStatus: this.dataForm.retirementStatus,
                duties: this.dataForm.duties,
                county: this.dataForm.county,
                street: this.dataForm.street,
                ybd: this.dataForm.originalTroops,
                yjsj: this.dataForm.handoverTime,
                handoverMode: this.dataForm.handoverMode,
                handoverBatch: this.dataForm.handoverBatch,
                workersClassification: this.dataForm.workersClassification,
                myStatus: this.dataForm.myStatus,
                death: this.dataForm.death,
                deathTime: this.dataForm.deathTime,
                reception: this.dataForm.reception,
                housingSituation: this.dataForm.housingSituation,
                housingPropertyRight: this.dataForm.housingPropertyRight,
                leaseholder: this.dataForm.leaseholder,
                housingArea: this.dataForm.housingArea,
                increasePension: this.dataForm.increasePension,
                totalMonthlyPension: this.dataForm.totalMonthlyPension,
                address: this.dataForm.address,
                phone: this.dataForm.phone,
                remarks: this.dataForm.remarks,
                jl: this.dataForm.teachingAge,
                workYears: this.dataForm.workingYears,
                jdgznx: this.dataForm.workingYearsArmy,
                wageLevel: this.dataForm.wageLevel,
                wageGrade: this.dataForm.wageGrade,
                wageScale: this.dataForm.wageScale,
                retirementFeeProportion: this.dataForm.retirementFeeProportion,
                gljt: this.dataForm.senioritySalary,
                jcgz: this.dataForm.basicSalary,
                jbgz: this.dataForm.levelSalary,
                zwgwgz: this.dataForm.gradeSalary,
                salaryScale: this.dataForm.salaryScale,
                jjjt: this.dataForm.bonusAllowance,
                jdfwjt: this.dataForm.serviceAllowance,
                jhljt: this.dataForm.seniorityAllowance,
                totalSubsidy: this.dataForm.totalSubsidy,
                tjjsbt: this.dataForm.specialTeacherSubsidy,
                difficultySubsidy: this.dataForm.difficultySubsidy,
                gztg: this.dataForm.raiseWages,
                lxfA: this.dataForm.retirementPayEightynine,
                lxfB: this.dataForm.retirementPayNinetytwo,
                lxfC: this.dataForm.retirementPayFirst,
                lxfD: this.dataForm.retirementPaySecond,
                lxfE: this.dataForm.retirementPayNinetyfive,
                lxfF: this.dataForm.retirementPayNinetyseven,
                lxfG: this.dataForm.retirementPayNinetysesec,
                lxfH: this.dataForm.retirementPayNinetynine,
                lxfK: this.dataForm.retirementPayNinetynisec,
                retirementPayZero: this.dataForm.retirementPayZero,
                lxfL: this.dataForm.retirementPayOne,
                lxfM: this.dataForm.retirementPayOnenew,
                lxfN: this.dataForm.retirementPayOnsec,
                lxfO: this.dataForm.retirementPayThird,
                lxfP: this.dataForm.retirementPayThisec,
                lxfQ: this.dataForm.retirementPayFive,
                lxfR: this.dataForm.retirementPaySix,
                lxfI: this.dataForm.retirementPayFourty,
                foodAllowanceSeventynine: this.dataForm.foodAllowanceSeventynine,
                foodAllowanceEightyeight: this.dataForm.foodAllowanceEightyeight,
                oilAllowanceNightyone: this.dataForm.oilAllowanceNightyone,
                oilAllowanceNightytwo: this.dataForm.oilAllowanceNightytwo,
                fuelLlowance: this.dataForm.fuelLlowance,
                meatLlowance: this.dataForm.meatLlowance,
                oilAllowanceNightythird: this.dataForm.oilAllowanceNightythird,
                livingAllowanceEightyfive: this.dataForm.livingAllowanceEightyfive,
                livingAllowanceEightyei: this.dataForm.livingAllowanceEightyei,
                livingAllowanceNightytw: this.dataForm.livingAllowanceNightytw,
                livingAllowanceNightyfo: this.dataForm.livingAllowanceNightyfo,
                livingAllowanceNightyfive: this.dataForm.livingAllowanceNightyfive,
                livingAllowanceNightysix: this.dataForm.livingAllowanceNightysix,
                livingAllowanceNightysev: this.dataForm.livingAllowanceNightysev,
                livingAllowanceNightyeig: this.dataForm.livingAllowanceNightyeig,
                livingAllowanceNightynig: this.dataForm.livingAllowanceNightynig,
                livingAllowanceZero: this.dataForm.livingAllowanceZero,
                livingAllowanceOne: this.dataForm.livingAllowanceOne,
                livingAllowanceTwo: this.dataForm.livingAllowanceTwo,
                livingAllowanceThird: this.dataForm.livingAllowanceThird,
                livingAllowanceFour: this.dataForm.livingAllowanceFour,
                livingAllowanceSeven: this.dataForm.livingAllowanceSeven,
                zftsjt: this.dataForm.specialGoveAllowanc,
                paperMoney: this.dataForm.paperMoney,
                ycbgbt: this.dataForm.carAllowance,
                bathSubsidy: this.dataForm.bathSubsidy,
                ryjt: this.dataForm.honorAllowance,
                otherIncome: this.dataForm.otherIncome,
                jobSubsidy: this.dataForm.jobSubsidy,
                ageAllowance: this.dataForm.ageAllowance,
                holidaySubsidy: this.dataForm.holidaySubsidy,
                retirementAllowanceOneo: this.dataForm.retirementAllowanceOneo,
                growthMechanismSubsidy: this.dataForm.growthMechanismSubsidy,
                workingYearsSubsidy: this.dataForm.workingYearsSubsidy,
                proportionalSubsidy: this.dataForm.proportionalSubsidy,
                workUnit: this.dataForm.workUnit,
                increaseProportion: this.dataForm.increaseProportion,
                renson: this.dataForm.renson,
                registrationNo: this.dataForm.registrationNo,
                nativePlace: this.dataForm.nativePlace,
                registeredResidence: this.dataForm.registeredResidence,
                zfgdTime: this.dataForm.zfgdTime,
                resettlementPlanTime: this.dataForm.resettlementPlanTime,
                medicalInsurance: this.dataForm.medicalInsurance,
                allowanceRatio: this.dataForm.allowanceRatio,
                enjoyAllowance: this.dataForm.enjoyAllowance,
                specialAllowance: this.dataForm.specialAllowance,
                treatmentStandard: this.dataForm.treatmentStandard,
                postLevel: this.dataForm.postLevel,
                salary: this.dataForm.salary,
                isImprove: this.dataForm.isImprove,
                personnelClassification: this.dataForm.personnelClassification,
                ylylbt: this.dataForm.pensionMedicalSubsidy,
                hlfje: this.dataForm.nursingFee,
                isNursingFee: this.dataForm.isNursingFee,
                heatingSubsidy: this.dataForm.heatingSubsidy,
                wyfwbt: this.dataForm.serviceSubsidy,
                lxfS: this.dataForm.retirementPaySixteen,
                lxfJ: this.dataForm.retirementPayEighteen,
                retirementPayNineteen: this.dataForm.retirementPayNineteen,
                retirementPayTwentyseven: this.dataForm.retirementPayTwentyseven,
                lxfT: this.dataForm.retirementPayTwentyten,
                logoutDate: this.dataForm.logoutDate,
                personType: this.dataForm.personType,
                state: this.dataForm.state,
                jblxfhj:this.resultA,
                lczjtxfhjsl:this.resultB,
                jtbthj:this.resultG,
                lxfhj:this.resultH,
                shbthj:shbthj
              }
             exportDocx(window.SITE_CONFIG.cdnUrl + "/static/assets/shbt.docx", data, `生活补贴.docx`);
          }
        
		  },
    
    }
  }

  export const exportDocx = (tempDocxPath, data, fileName) => {
  // 读取并获得模板文件的二进制内容
  JSZipUtils.getBinaryContent(tempDocxPath, (error, content) => {
    if (error) {
      throw error;
    }
    let zip = new PizZip(content);
    let doc = new docxtemplater().loadZip(zip);
    doc.setData(data);
    try {
      // render the document (replace all occurences of {first_name} by John, {last_name} by Doe, ...)
      doc.render();
    } catch (error) {
      let e = {
        message: error.message,
        name: error.name,
        stack: error.stack,
        properties: error.properties,
      };
      console.log({
        error: e
      });
      // The error thrown here contains additional information when logged with JSON.stringify (it contains a property object).
      throw error;
    }
    let out = doc.getZip().generate({
      type: "blob",
      mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    }); //Output the document using Data-URI
    saveAs(out, fileName);
  });
};
</script>
<style>
.el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}
.el-select .el-input.is-disabled .el-input__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}

.el-textarea.is-disabled .el-textarea__inner {
background-color: #f5f7fa;
border-color: #e4e7ed;
color: #000;
cursor:pointer
}
</style>